Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

auto increment should start at 1 #3

Closed
bazo opened this issue Nov 23, 2012 · 2 comments
Closed

auto increment should start at 1 #3

bazo opened this issue Nov 23, 2012 · 2 comments
Assignees

Comments

@bazo
Copy link

bazo commented Nov 23, 2012

currentl, if you have data in tables the exported ddl contains auto increment with the value i currently have in db. it doesn't make sense for other team members to start at with auto increment at my value rather than at 1.

i know it's a mysql thing, but could this be fixed somehow?

@victorstanciu
Copy link
Owner

MySQL's SHOW CREATE TABLE command automatically includes the AUTO_INCREMENT value, and there's no command option to ignore it, so I've added a preg_replace that automatically strips the AUTO_INCREMENT value from the command's return data. Please fetch the change :)

@bazo
Copy link
Author

bazo commented Nov 23, 2012

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants