-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
When we update the database schema of a cppcms application, we may want to have an easy and safe way to
- check that the current application as the last database schema
- if not to be able to execute one or several script to update it without harming the data already in it
basically it should be an external tool that can work like this
cppcmsskel_upgradedb path/to/application/db path/to/update/folder
for example
cppcmsskel_upgradedb /opt/tatowiki/data/tatowiki.db ~/tatowiki/app/sql/updates
updates containing
- a
last_version.txtcontaining the last version number in it - a list of scripts
from_X_to_Y.sqlpermitting to upgrade from the version X to the version Y of the database , so that the script will first compare the version in the application database, and then will execute it for examplefrom_13_to_15.sqlandfrom_15_to_16.sql
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels