]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
[neutron-db-manage] revision: properly bootstrap a new branch
authorIhar Hrachyshka <ihrachys@redhat.com>
Sat, 18 Jul 2015 12:52:53 +0000 (14:52 +0200)
committerHenry Gessau <gessau@cisco.com>
Mon, 27 Jul 2015 01:00:23 +0000 (21:00 -0400)
commit87fff61b06b1dfca7008e0482141d48329039f5a
treee0435a0704c18841e69d4641e3802980fabf0c02
parente95bc6f5be6b0d3bcf0677e515660f6b972163fe
[neutron-db-manage] revision: properly bootstrap a new branch

If the intended branch is not present, bootstrap it:

- create directory;
- mark the new migration script with proper branch label;
- make the script down_revision == None to indicate it's a new branch;

One missing thing is making the script depends_on the previous release
branch. This is currently unsupported by alembic though.

Partially-Implements: blueprint online-schema-migrations
Change-Id: Ib3b9dfcbdb56db99b07a8e54629dda5933e1c1f5
neutron/db/migration/alembic_migrations/script.py.mako
neutron/db/migration/cli.py
neutron/tests/unit/db/test_migration.py