|
|
(4 intermediate revisions by 4 users not shown) |
Line 1: |
Line 1: |
− | __NOTOC__
| |
− | = Quantum Database Migration =
| |
| | | |
− | Now Quantum supports database migration from Quantum Folsom to Quantum Grizzly+.
| + | = Neutron Database Migration = |
− | When a developer submits a patch to Quantum that changes the database model,
| |
− | a database migration script is required.
| |
| | | |
− | * Detail description : https://github.com/openstack/quantum/blob/master/quantum/db/migration/README
| + | See details in the devref: |
| | | |
− | == Howto ==
| + | * http://docs.openstack.org/developer/neutron/devref/alembic_migrations.html |
− | | |
− | # Quantum repo $git checkout master
| |
− | # Run devstack (with your plugin)
| |
− | # quantum-db-manage --config-file /etc/quantum/quantum.conf --config-file <plugin.ini> stamp head
| |
− | # Stop quantum services
| |
− | # Quantum repo $git checkout <your feature branch>
| |
− | # quantum-db-manage --config-file /etc/quantum/quantum.conf --config-file <plugin.ini> revision -m "Description" --autogenerate
| |
− | # Restart Quantum services (if needed)
| |
− | | |
− | [note] First 20 chars of "Description" is used as a part of a filename of a migration script.
| |
Latest revision as of 20:01, 30 September 2015
Neutron Database Migration
See details in the devref: