From dc4d68dc8abd547a946980bf1fd0b8ddbb4d7a14 Mon Sep 17 00:00:00 2001 From: Ryan Slade Date: Fri, 22 Nov 2024 12:55:15 +0100 Subject: [PATCH] Remove unused parameter --- pkg/migrations/duplicate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/migrations/duplicate.go b/pkg/migrations/duplicate.go index f6b3da0b..2653a930 100644 --- a/pkg/migrations/duplicate.go +++ b/pkg/migrations/duplicate.go @@ -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 @@ -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`