Feature #7123
Hook in a migration system for cthulhu DB tables
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Backend (services)
Target version:
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Description
Not that we need to migrate anything in the initial release, but it's a heck of a lot easier in the .1 release if the .0 release had a migration system built into it. According to google Alembic is the thing people use with sqlalchemy.
Associated revisions
cthulhu: add alembic for DB migrations
Fixes: #7123
cthulhu: Invoke migrations in "calamari-ctl initialize"
Fixes: #7123
History
#1 Updated by John Spray about 10 years ago
- Target version changed from v1.2 Backlog to v1.2-dev3
#2 Updated by John Spray about 10 years ago
- Status changed from New to In Progress
#3 Updated by John Spray about 10 years ago
I've added alembic to our build and installation.
commit d1a395f3cd0ae767fe75b155b6c8f2a2afce7d63 Author: John Spray <jcspray@gmail.com> Date: Mon Feb 10 11:54:04 2014 +0000 cthulhu: add alembic for DB migrations Fixes: #7123
Still need to make it so that it will actually run migrations on a calamari-ctl initialize (currently it just does a create_all and stamps the version, which is the correct thing to do on the very first install)
#4 Updated by Ian Colle about 10 years ago
- Assignee set to John Spray
#5 Updated by John Spray about 10 years ago
- Status changed from In Progress to Resolved
Fixed at ee8d6e131e5dd889a38e893518dc2da2b23ae57c