Craft Schema Version #10192
-
Currently Craft has a version and a schemaVersion in its config (info table). My Idea/Question: Wouldn't it be nice with to know how far back (in Craft versions) you could theoretically go with a dump? This could be done by setting the schemaVersion to the Craft version whenever migrations are applied in a certain Craft release. Example (not taken from the current Craft releases):
Now when dumps are created by And maybe my idea is complete crap :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are some cases where multiple migrations are added to a single release, in which case the schema version is incremented multiple times. E.g. by the time 3.7.0 was tagged, the schema version was already up to 3.7.7: Line 7 in 6948a8a I like the idea though. Something to consider for 4.0 and onward. In cases where there are multiple migrations, we could just start incrementing another dot (4.0.0.10 instead of 4.0.10). |
Beta Was this translation helpful? Give feedback.
There are some cases where multiple migrations are added to a single release, in which case the schema version is incremented multiple times. E.g. by the time 3.7.0 was tagged, the schema version was already up to 3.7.7:
cms/src/config/app.php
Line 7 in 6948a8a
I like the idea though. Something to consider for 4.0 and onward. In cases where there are multiple migrations, we could just start incrementing another dot (4.0.0.10 instead of 4.0.10).