-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev environment should start creating users with id 2 #11807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updating the initial table creation's migration file (by adding ->from(2)
) is probably fine...
Hrmm... The idea being migrations are not re-run in prod, so only developers will see the changes moving forward when they do a fresh re-seed & migrate? This would also work, but will result in the migration inside that file and the prod DB in different states. I do like the simplicity of the @nanaya What are your thoughts? Am I being too picky here? |
the value itself changes the moment any data is entered. Rolling back doesn't actually do anything either (it'll just set to the minimum valid value). |
I'm confused. What is your reasoning on I feel a new migration is better because:
|
more like it has always kind of bugged but ignored for a long time. The migration files also have been modified multiple times and the initial migration didn't match the actual db either. there's currently no migration flattening and more migration files means longer setup (and test) time
|
I see I see, this makes sense with more project context. Both of my points resolve around DB vs. migration state. I’ll make the update to ‘from(2)’ when I’m off this afternoon — thanks for the rundown! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on board with just updating the initial migration
Done in #11828 |
Will start adding users at
id=2
( leavingid=1
open for guest ) going forward in thephpbb_users
table.https://dev.mysql.com/doc/refman/8.4/en/example-auto-increment.html