Skip to content

Commit a7f3e3c

Browse files
authored
Remove unused parameter (#483)
1 parent a9b2048 commit a7f3e3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/migrations/duplicate.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (d *Duplicator) Duplicate(ctx context.Context) error {
9292
colNames = append(colNames, name)
9393

9494
// Duplicate the column with the new type
95-
if sql := d.stmtBuilder.duplicateColumn(c.column, c.asName, c.withoutNotNull, c.withType, d.withoutConstraint); sql != "" {
95+
if sql := d.stmtBuilder.duplicateColumn(c.column, c.asName, c.withoutNotNull, c.withType); sql != "" {
9696
_, err := d.conn.ExecContext(ctx, sql)
9797
if err != nil {
9898
return err
@@ -238,7 +238,6 @@ func (d *duplicatorStmtBuilder) duplicateColumn(
238238
asName string,
239239
withoutNotNull bool,
240240
withType string,
241-
withoutConstraint []string,
242241
) string {
243242
const (
244243
cAlterTableSQL = `ALTER TABLE %s ADD COLUMN %s %s`

0 commit comments

Comments
 (0)