Replace db_sync and db_version with a set of db-related commands

Registered by Boris Bobrov

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/downgrade/stamp/revision/version". It will comply with alembic commands and with oslo.db migration_cli interface

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Boris Bobrov
Direction:
Needs approval
Assignee:
Boris Bobrov
Definition:
Superseded
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Lance Bragstad

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/cli-db-commands,n,z

Addressed by: https://review.openstack.org/147548
    Use migration_cli for db migrations

Gerrit topic: https://review.openstack.org/#q,topic:bp/alembic,n,z

(vishakha) 19-02-13 Depends on https://blueprints.launchpad.net/keystone/+spec/alembic

(lbragstad) 19-02-13: I think we should continue this discussion as a specification proposed against the openstack/keystone-specs repository. Once we get the proposed as a specification or as an RFE bug, we can mark this blueprint as obsolete.

(lbragstad) 19-02-15: I'm marking this as superseded based on the plan socialized on the mailing list [0]. All relevant content from this blueprint has been ported to an RFE bug report [1].

[0] http://lists.openstack.org/pipermail/openstack-discuss/2019-February/002672.html
[1] https://bugs.launchpad.net/keystone/+bug/1816158

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.