Zhi Chang wrote:
Hi, all
Now, I should make some database model definitions if I want to upgrade db. And a database migration
script will generated when I run "neutron-db-manage revision -m "description of revision"
--autogenerate". The database will upgraded
Hi, all
Now, I should make some database model definitions if I want to upgrade db.
And a database migration script will generated when I run "neutron-db-manage
revision -m "description of revision" --autogenerate". The database will
upgraded when run "neutron-db-manage upgrade head".
You can create new migration using "neutron-db-manage revision -m 'desc'
--expand/--contract" depends in what changes do you want to do in migration
expand - add something, contract - delete or modify.
More information -
http://docs.openstack.org/developer/neutron/devref/alembic_migrations.html