diff --git a/.changeset/forty-shirts-hug.md b/.changeset/forty-shirts-hug.md new file mode 100644 index 000000000..1b727ee6e --- /dev/null +++ b/.changeset/forty-shirts-hug.md @@ -0,0 +1,5 @@ +--- +'@xata.io/pgroll': minor +--- + +[Breaking] Remove `column` from `drop_constraint` diff --git a/packages/cli/src/commands/schema/edit.test.ts b/packages/cli/src/commands/schema/edit.test.ts index d13ac6953..b24b4f603 100644 --- a/packages/cli/src/commands/schema/edit.test.ts +++ b/packages/cli/src/commands/schema/edit.test.ts @@ -441,7 +441,6 @@ const testCases: TestCase[] = [ table: 'table2', down: '"col1"', up: '"col1"', - column: 'col1', name: 'table2_col1_unique' } } diff --git a/packages/cli/src/commands/schema/edit.ts b/packages/cli/src/commands/schema/edit.ts index 6eee99330..78a77192c 100644 --- a/packages/cli/src/commands/schema/edit.ts +++ b/packages/cli/src/commands/schema/edit.ts @@ -962,7 +962,6 @@ export const editsToMigrations = (command: EditSchema) => { ? { drop_constraint: { table: tableName, - column: originalField.name, name: uniqueConstraintName, up: `"${originalField.name}"`, down: `"${originalField.name}"`