]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make Juno migrations config independent
authorSalvatore Orlando <salv.orlando@gmail.com>
Wed, 23 Jul 2014 19:16:21 +0000 (12:16 -0700)
committerHenry Gessau <gessau@cisco.com>
Fri, 12 Sep 2014 03:09:45 +0000 (23:09 -0400)
commit6bb671868821dc2f85fc0cdd2da870274b9d18f7
tree2182803ff2004ff75e26d819aa1cf2bc9d7c4f26
parentd40945223bf36f5ee981f0c0337703a0359d778a
Make Juno migrations config independent

This patch amends migrations added after the icehouse release
and before the healing migration.
Migrations are changed in a way that they are not anymore
dependent on configuration parameters but are anyway aware of
the fact that the database has not yet been healed.

To this aim, amended migrations now will need to inspect the
current schema and cannot be anymore be used in offline mode;
this is consistent with the behaviour of the healing migration.

This patch does not remove the logic for generating and
managing configuration-dependent migrations. For this reason
upgrade and downgrade routines still accept the active_plugins
parameter, which will not be used.

Change-Id: I9d55a01c64ef555b7774099f497c9eea596aea6e
Partially-implements: blueprint reorganize-migrations
13 files changed:
neutron/db/migration/__init__.py
neutron/db/migration/alembic_migrations/versions/10cd28e692e9_nuage_extraroute.py
neutron/db/migration/alembic_migrations/versions/1b837a7125a9_cisco_apic_driver.py
neutron/db/migration/alembic_migrations/versions/1e5dd1d09b22_set_not_null_fields_lb_stats.py
neutron/db/migration/alembic_migrations/versions/2db5203cb7a9_nuage_floatingip.py
neutron/db/migration/alembic_migrations/versions/33c3db036fe4_set_length_of_description_field_metering.py
neutron/db/migration/alembic_migrations/versions/4eca4a84f08a_remove_ml2_cisco_cred_db.py
neutron/db/migration/alembic_migrations/versions/5446f2a45467_set_server_default.py
neutron/db/migration/alembic_migrations/versions/54f7549a0e5f_set_not_null_peer_address.py
neutron/db/migration/alembic_migrations/versions/6be312499f9_set_not_null_vlan_id_cisco.py
neutron/db/migration/alembic_migrations/versions/b65aa907aec_set_length_of_protocol_field.py
neutron/db/migration/alembic_migrations/versions/d06e871c0d5_set_admin_state_up_not_null_ml2.py
neutron/tests/unit/test_db_migration.py