Skip to content

Commit

Permalink
Remove column on drop_constraint (#1619)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Rico <[email protected]>
  • Loading branch information
SferaDev authored Nov 6, 2024
1 parent 94a0a60 commit b990afb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-shirts-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@xata.io/pgroll': minor
---

[Breaking] Remove `column` from `drop_constraint`
1 change: 0 additions & 1 deletion packages/cli/src/commands/schema/edit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ const testCases: TestCase[] = [
table: 'table2',
down: '"col1"',
up: '"col1"',
column: 'col1',
name: 'table2_col1_unique'
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/commands/schema/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ export const editsToMigrations = (command: EditSchema) => {
? {
drop_constraint: {
table: tableName,
column: originalField.name,
name: uniqueConstraintName,
up: `"${originalField.name}"`,
down: `"${originalField.name}"`
Expand Down

0 comments on commit b990afb

Please sign in to comment.