Revive Alembic-based database migration logic.
Alembic migrations were introduced to Barbican a while ago but have not been used recently. This CR revisits the migration logic and ensures that time-zero database tables creation is distinguished from Alembic-base schema updates. The associated database migration script is also revived, allowing for schema migrations outside of the Barbican boot process. Change-Id: I3e7fd7ac3f629da18329c22ad11cb9ccc1b7f9f9 Implements: blueprint db-revive-migrations
This commit is contained in:
3
tox.ini
3
tox.ini
@@ -20,4 +20,5 @@ commands = {toxinidir}/tools/hacking.sh {posargs}
|
||||
# E711 ignored because of sqlalchemy override of == None
|
||||
# H ignored because it's not H clean
|
||||
ignore = E711,H
|
||||
exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*openstack/common,contrib,functionaltests
|
||||
exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*openstack/common,contrib,
|
||||
functionaltests,*alembic_migrations/versions
|
||||
|
||||
Reference in New Issue
Block a user