Skip to content

Commit

Permalink
Remove unused parameter (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanslade authored Nov 22, 2024
1 parent a9b2048 commit a7f3e3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/migrations/duplicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (d *Duplicator) Duplicate(ctx context.Context) error {
colNames = append(colNames, name)

// Duplicate the column with the new type
if sql := d.stmtBuilder.duplicateColumn(c.column, c.asName, c.withoutNotNull, c.withType, d.withoutConstraint); sql != "" {
if sql := d.stmtBuilder.duplicateColumn(c.column, c.asName, c.withoutNotNull, c.withType); sql != "" {
_, err := d.conn.ExecContext(ctx, sql)
if err != nil {
return err
Expand Down Expand Up @@ -238,7 +238,6 @@ func (d *duplicatorStmtBuilder) duplicateColumn(
asName string,
withoutNotNull bool,
withType string,
withoutConstraint []string,
) string {
const (
cAlterTableSQL = `ALTER TABLE %s ADD COLUMN %s %s`
Expand Down

0 comments on commit a7f3e3c

Please sign in to comment.