-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
DB migration from UF3 to UF4 #667
Comments
Current thinking is to implement this as a separate |
When I think about this a little more, it seems like our migration tool should simply copy "pure UF" data (users, roles, permissions) from an old v3 DB to a fresh v4 DB. With v4's Sprinkle system, any additional columns (in the user table, for example) should probably be implemented as a separate table anyway. So, this should be the responsibility of individual developers to customize this part of the migration. |
As discussed on the chat, the plan for V3 -> V4 migration (and V4 -> V5 and V5 -> V6 and...) should be : A fresh install should always start by installing the latest major revision base migration. For example, if last UF version is If you already have Core migration with major changes (like the v3 -> v4 one) should also check for conflicts and fail if a breaking change in the db is found. For example, if UF change the This upgrade could be done by the The
tl;dr we need a new v3 -> V4 migration. We'll also need a way to detect which version the db is in (migration table not available in v3!) and change the migrator so it not run old migration (ex v4 migration if v5 migrations are available). Note this issue will require #795 |
I'm going to close this, since we now have a short-term solution here: https://github.com/userfrosting/upgrade We do need a generalized framework for implementing database upgrades, both for the core tables and developer-defined tables. It has become clear that our current migration system is insufficient for a lot of situations. However, I will open a separate issue for this. |
We could really use a DB migration tool for helping people upgrade from UF3 to UF4.
The text was updated successfully, but these errors were encountered: