db migration version should be able to be specified in the CLI

Bug #1652708 reported by Chaoyi Huang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tricircle
Fix Released
Medium
Yipei Niu

Bug Description

currently the version migrated to is fixed to 2 in cmd/manage.py, it's not correct. We should use the version specified in the CLI, if no target version is specified, then migrate the db to the latest version.

https://github.com/openstack/tricircle/blob/e7278406c3c7328fa12b646ad1f9c7706e124f6a/cmd/manage.py#L31

And at the same time, the command could be optimized like https://github.com/openstack/kingbird/blob/master/kingbird/cmd/manage.py to make it being able to do command parser, and customize the target version to migrate

Ronghui Cao (cr-hui)
summary: - db migration version should be able to be specified in the cli
+ db migration version should be able to be specified in the client
summary: - db migration version should be able to be specified in the client
+ db migration version should be able to be specified in the CLI
Revision history for this message
Chaoyi Huang (joehuang) wrote :
Changed in tricircle:
status: New → Fix Released
importance: Undecided → Medium
milestone: none → pike-3
assignee: nobody → Yipei Niu (newypei)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.