Include Auto Increment in Schema Dump #54328
Unanswered
liamduckett
asked this question in
Ideas
Replies: 1 comment 6 replies
-
Why do you need auto increment? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I recently dumped my MySQL schema - and was surprised to find that my primary key starting value starting value was not included in the schema dump.
Results in:
Whilst I would have expected
Upon taking a deeper look at this, I found the following method:
...which is why I'm reporting it as a feature request, rather than a bug report (which I had originally planned) - it seems intentional.
Can anyone shed some light on the reason for this? The best I could come up with, was for consistency with Postgres (which is the only other RDBMS to support setting a startingValue). For reference, a Postgres schema dump doesn't include auto increment starting values, but also doesn't feature any code to specifically do it.
Beta Was this translation helpful? Give feedback.
All reactions