Can't deploy after ALTER TABLE mytable AUTO_INCREMENT=1;
#78
-
I created a branch, executed
The UI shows me: TLDR: I can't execute |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @danaugrs. You're right, that One solution: you can disable safe migrations for your production branch. This will allow you to run the DDL directly in production without using a deploy request.
|
Beta Was this translation helpful? Give feedback.
-
Any updates to this? Or plans to allow such DDL statements? The only way to reset this currently is to delete the database and recreate. |
Beta Was this translation helpful? Give feedback.
Hi @danaugrs. You're right, that
ALTER
is DDL and can't be applied in a production branch via a deploy request. The auto-increment counter value isn't included when we diff the branch schemas to create a deploy request.One solution: you can disable safe migrations for your production branch. This will allow you to run the DDL directly in production without using a deploy request.
At the moment we don't have a workaround that can apply this change to a production branch.