diff options
author | Clément Lassieur <clement@lassieur.org> | 2018-07-07 00:31:14 +0200 |
---|---|---|
committer | Clément Lassieur <clement@lassieur.org> | 2018-07-14 21:35:13 +0200 |
commit | 03c4095f0a1a614af3b1e1cd63270d28d98b39a3 (patch) | |
tree | 1f209d7c73ce97febc6935493f232ad9cb9f39b3 /tests | |
parent | cc078a0e98906044941a0ce6a7328d62dac3df1f (diff) | |
download | cuirass-03c4095f0a1a614af3b1e1cd63270d28d98b39a3.tar cuirass-03c4095f0a1a614af3b1e1cd63270d28d98b39a3.tar.gz |
database: Add support for database upgrades.
* src/cuirass/database.scm (%package-sql-dir): New parameter.
(db-load, db-schema-version, db-set-schema-version, latest-db-schema-version,
schema-upgrade-file, db-upgrade): New procedures.
(db-init): Set version corresponding to the existing upgrade-n.sql files.
(db-open): If database exists, upgrade it.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions