-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Migrations command should use the UTC datetime when creating new migrations #2018
Comments
To piggyback on this, I think we already discussed it but I would love to see MigrationRunner process migrations universally by their UTC datetime, instead of namespace-by-namespace (which doesn't allow devs to make migrations on top of a module's migrations without intentionally staggering them). |
@MGatner You're absolutely right. I knew there was more to the discussion but didn't take the time to search for what it was. So thanks! That could only work for timestamp-based migrations, though. |
I'm curious what your plans are on version control vis-a-vis namespaces. Right now |
I haven't gotten back to this just yet, but I'm thinking this will need a modification that records a batch number with each migration, then it can record the fully qualified classname in the database so that it will know which classes across all namespaces were part of that last Just read back over what you wrote though and realized that's not what you were asking. :) To be honest, I've never really used |
After posting that I was thinking "maybe I should have included ditching it". I think that's the way to go - it's a bit vestigial at this point already, and definitely doesn't fit well with a multi-source migration scheme. |
This is wrapped up with the migration refactor! Safe to close. |
By ensuring all migrations are created using UTC, then teams from around the world can work together better.
The text was updated successfully, but these errors were encountered: