Skip to content

Can't deploy after ALTER TABLE mytable AUTO_INCREMENT=1; #78

Answered by jgreet
danaugrs asked this question in Bug Reports
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@danaugrs
Comment options

Answer selected by hallaroo
Comment options

You must be logged in to vote
1 reply
@Brian-1150
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants