Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration error when changing the case of a column AND adding the column to the renaming migration section #825

Open
ldhasson opened this issue Jul 2, 2024 · 0 comments

Comments

@ldhasson
Copy link
Collaborator

ldhasson commented Jul 2, 2024

When changing the case of a column, for example "abc_xyz" to "abc_Xyz", the migration will automatically handle that case. But if someone adds an explicit migration action, Tilda will try to migrate twice.

 ,"migrations":{
      "renames":[
          { "object":"SomeTable", "column":"xyz_abc", "oldNames":["xyz_Abc"]}
       ]
     ,"moves":[
       ]
   }

Tilda, should recognize that there is a "double" migration occurring and flag it as an error: case-changes of column names are handled automatically and shouldn't be handled in the Migrations section.

@ldhasson ldhasson converted this from a draft issue Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Implementation
Development

No branches or pull requests

1 participant