DB schema updates are manual and ad-hoc at present. It would be nice to have a schema versioning method and upgrade script.
Something like a schema version table containing a single column, single row with the schema version number in it.
A series of SQL upgrade scripts upgrades from one schema to another, identified by the version they upgrade to, such as 0001_upgrade.sql, 0002_upgrade.sql. 0001 upgrades from the last non-versioned schema to version 1.
A python script can check the current database schema and run the necessary upgrade scripts in order.
This will have to be run with only the db container running.
DB schema updates are manual and ad-hoc at present. It would be nice to have a schema versioning method and upgrade script.
Something like a schema version table containing a single column, single row with the schema version number in it.
A series of SQL upgrade scripts upgrades from one schema to another, identified by the version they upgrade to, such as 0001_upgrade.sql, 0002_upgrade.sql. 0001 upgrades from the last non-versioned schema to version 1.
A python script can check the current database schema and run the necessary upgrade scripts in order.
This will have to be run with only the db container running.