Jump to: navigation, search

Difference between revisions of "Neutron/DatabaseMigration"

m (Neutron Database Migration)
 
Line 2: Line 2:
 
= Neutron Database Migration =
 
= Neutron Database Migration =
  
When a developer submits a patch to Neutron that changes the database model,
+
See details in the devref:
a database migration script is required.
 
  
* Detail description : https://github.com/openstack/neutron/blob/master/neutron/db/migration/README
+
* http://docs.openstack.org/developer/neutron/devref/alembic_migrations.html
 
 
== Howto ==
 
 
 
# Neutron repo $git checkout master
 
# Run devstack (with your plugin)
 
# Stop neutron services
 
# Neutron repo $git checkout <your feature branch>
 
# neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file <plugin.ini> revision -m "Description" --autogenerate
 
# Restart Neutron 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: