-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
c/consoleRelated to consoleRelated to consolee/quickfixcan be wrapped up in few hourscan be wrapped up in few hoursk/bugSomething isn't workingSomething isn't workingp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprint
Description
when a column is renamed, the generated down migration tries to set the comment of the column with the old name before renaming it back.
ie. a column is renamed from "iconkey" to "iconKey" with camelcase
the generated down migration looks like this:
- args:
sql: COMMENT ON COLUMN "public"."menu"."iconkey" IS E'null'
type: run_sql
- args:
sql: alter table "public"."menu" rename column "iconKey" to "iconkey";
type: run_sql
and therefore fails.
after manually reversing the order it works
Metadata
Metadata
Assignees
Labels
c/consoleRelated to consoleRelated to consolee/quickfixcan be wrapped up in few hourscan be wrapped up in few hoursk/bugSomething isn't workingSomething isn't workingp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprint