这是indexloc提供的服务,不要输入任何密码
Skip to content

down migration of a renamed column fails #3503

@bbapplications

Description

@bbapplications

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 consolee/quickfixcan be wrapped up in few hoursk/bugSomething isn't workingp/highcandidate for being included in the upcoming sprint

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions