You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to avoid comparing and dumping the starting value of AUTO_INCREMENT in the inspect and diff commands?
Each time I create a new branch, I take a snapshot (inspect) of the master database, and before merging, I generate the changes. I've noticed this issue only occurs when using --format "{{ sql . }}", which is necessary for my workflow.
I do not want to generate incremental changes like the following:
./db_diff.sh
-- Modify "logins" table
ALTER TABLE `logins` AUTO_INCREMENT=1212;
-- Modify "logs" table
ALTER TABLE `logs` AUTO_INCREMENT=133052;
-- Modify "pages" table
ALTER TABLE `pages` AUTO_INCREMENT=4;
-- Modify "phrases" table
ALTER TABLE `phrases` AUTO_INCREMENT=436;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to avoid comparing and dumping the starting value of AUTO_INCREMENT in the inspect and diff commands?
Each time I create a new branch, I take a snapshot (inspect) of the master database, and before merging, I generate the changes. I've noticed this issue only occurs when using --format "{{ sql . }}", which is necessary for my workflow.
I do not want to generate incremental changes like the following:
Thanks for any help with this issue.
Beta Was this translation helpful? Give feedback.
All reactions