#5564 - Disassociate Composr version from database / addons / cns versions
| Identifier | #5564 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Disassociate Composr version from database / addons / cns versions |
| Status | Completed |
| Tags |
Roadmap: Over the horizon (custom) Roadmap: v11 partial implementation (custom) |
| Handling member | PDStig |
| Addon | core_upgrader |
| Description | Currently, the upgrader uses the major on-disk version of Composr to determine if a database upgrade is needed. This is not ideal because it does not allow us to easily apply database fixes or changes as necessary until the next major version of Composr.
Separate this out starting with the first release of Composr 11 alpha. The database schema has its own version (we'll start with 11) which is taken from a new, separate version in version.php. And we should compare this with a new value or something in the database to see if the database schema has changed and people should run the database upgrader. The "rebuild sql files" tick should be moved from step 2 to step 1 in the make_release script (when we ask for Composr version). When ticked, the schema version is auto-increased 1 number in version.php. Mention this on the screen. Wherever we are relying on the Composr version to determine how to upgrade the database (e.g. cns_install or anywhere we do not have a block / module / addon version we are using), instead use the database schema version from now on. Or ideally we should create a new info function and give it its own version (starting from 11). Document this where applicable. Mention that the database schema version should be bumped and the sql files rebuilt whenever we make any changes to install functions within Composr or its bundled addons (excludes non-bundled addons). And we should bump the version accordingly of whatever module / block / addon we were working on / made the change (this should already be documented, but check in case). |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments