RFE: Use Alembic for database migrations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Identity (keystone) |
Wishlist
|
Unassigned |
Bug Description
Move from SQLALChemy-migrate to Alembic as the tool for maintaining SQL Repos.
Lance Bragstad (lbragstad) wrote : | #1 |
tags: | added: sql |
tags: | added: upgrades |
Changed in keystone: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Lance Bragstad (lbragstad) wrote : | #2 |
Patches that work towards this initiative:
alembic initial support: https:/
Do not add new 'db' command and subcommands for it: https:/
Target Alembic for Liberty: https:/
Use migration_cli for db migrations: https:/
tags: | added: rfe |
Now we have two commands that are related to migrations -- db_sync to migrate and db_version to show the current version. It works OK with sqlalchemy-migrate, but not with Alembic that we will be using. What needs to be done is to create a set of commands - "db upgrade/
Specification review: https:/ /review. openstack. org/#/c/ 131531/ specs.openstack .org/openstack/ keystone- specs/specs/ keystone/ backlog/ alembic. html
Specification doc: http://