It does look like an unnecessary change. We should be able to change the view from GUI to SQL and remove the ALTER TABLE statement. Alternatively, we should be able to unmark the checkbox for the id column shown on the same screenshot and try again.
thanks for looking into it - I can confirm that your workaround of unticking the checkbox on this individual change in GUI mode would allow other changes to still be propagated.
Do you agree though, that this is a bug in Retool Database Schema Migration?
The schemas are actually in sync, but it detects unnecessary changes. This makes it much harder for the user to confirm whether the schemas are in sync.
The produced SQL is incorrect, which makes it cumbersome to apply other schemas that still need syncing.
Could you please put this in the Retool Bug Tracker?
Hi @michael_h, I tried to reproduce this issue with no success. Could you share what updates where done on staging before the failed migration to production? This would help us identify what caused this issue.