aodh/ceilometer/storage/sqlalchemy/alembic
Eoghan Glynn 0cd1c8baa6 Avoid imposing alembic 6.0 requirement on all distros
Related-to: LP 1224666

Two of the alembic-based migrations use the new 'type_' kwarg in calls
to op.drop_constraint(), even though the old 'type' form was retained
for backward compatability:

  https://alembic.readthedocs.org/en/latest/ops.html

  "Changed in version 0.5.0: The type parameter is now named type_.
  The old name type will remain for backwards compatibility."

To avoid needlessly imposing the alembic 6.0 on distros for which this
version is not yet packaged, we revert these migrations to use the older
form.

The corresponding change to the global requirements is proposed here:

  https://review.openstack.org/48227

Change-Id: I3796ffa3de0e0f558f368d7ebf8e55c87657753d
2013-09-25 13:12:30 +01:00
..
versions Avoid imposing alembic 6.0 requirement on all distros 2013-09-25 13:12:30 +01:00
alembic.ini Added alembic migrations 2013-07-16 16:07:13 +03:00
env.py Close database connection for alembic env 2013-08-19 15:51:44 +04:00
README Call alembic migrations after sqlalchemy-migrate 2013-07-29 16:40:32 +03:00
script.py.mako Added alembic migrations 2013-07-16 16:07:13 +03:00

Please see https://alembic.readthedocs.org/en/latest/index.html for general documentation

To create alembic migrations you need to have alembic installed and available in PATH:
# pip install alembic
$ cd ./ceilometer/storage/sqlalchemy/alembic
$ alembic revision -m "migration_description"

See Operation Reference https://alembic.readthedocs.org/en/latest/ops.html#ops
for a short list of commands