Move from SQLALChemy-migrate to Alembic as the tool for maintaining SQL Repos.
OpenStack is moving from sqlalchemy-migrate to Alembic as the tool for maintaining SQL migrations. Keystone needs to follow suit, or we will be using an unsupported tool.
Continue using sqlalchemy-migrate for the current set of migrations. All new migrations will use Alembic.
Alembic migrations will run after sqlachemy-migrate migrations on upgrade and vice versa on downgrade. oslo.db’s migration_cli utilities will be used.
In two releases, we should be able to collapse the last of the sqlalchemy-migrate based migrations into a base Alembic based migration.
None
None
None
None
None
Existing modules that need migrations will need to create an “alembic” directory along with “migrate_repo”. It can be done using alembic init alembic command in the directory with the module.
The feature requires to have a new dependency for Keystone – “Alembic”. Now Alembic is required anyway by oslo.db, which is a requirement for Keystone.