deb-glance/glance
Hemanth Makkapati 21d431013f Port Glance Migrations to Alembic
This change proposes the use of Alembic to manage Glance migrations.
* Introduce new directory ``alembic_migrations`` under
  ``glance/db/sqlalchemy``. This directory is the home for all glance
  migrations henceforth. All the migration scripts reside under
  ``versions`` directory.
* All the migrations up to Liberty are consolidated into one migration
  called ``liberty_initial`` as those migrations are not supported
  any more. Mitaka migrations are retained but under a different naming
  convention.
* All the glance manage db commands are changed appropriately. They now
  use alembic to perform operations such as ``version``, ``upgrade``,
  ``sync`` and ``version_control``.
* The database versions are not numerical any more. They are the revision
  ID of the last migration applied on the database. Since we don't
  support migrations before Mitaka, the Liberty version ``42`` will now
  appear as ``liberty``. Migration ``43`` and ``44`` in Mitaka appear as
  ``mitaka01`` and ``mitaka02`` respectively.
* When one performs a ``sync`` or ``upgrade`` command, the database is
  first stamped with an equivalent alembic version before upgrading.
* The older migration scripts are retained so that users can correlate
  with the new migrations. Also, it is probably safe to retain them until
  the alembic migrations become stable. Similarly, the ``migrate_version``
  table is not removed yet.

Partially-Implements: blueprint alembic-migrations

Change-Id: Ie8594ff339a13bf190aefa308f54e97ee20ecfa2
Co-Authored-By: Alexander Bashmakov <alexander.bashmakov@intel.com>
Depends-On: I1596499529af249bc48dfe859bbd31e90c48a5e0
2017-01-31 22:42:43 -06:00
..
api Merge "Bump minor API version" 2017-01-28 00:20:40 +00:00
async Adding constraints around qemu-img calls 2016-09-26 13:28:31 -05:00
cmd Port Glance Migrations to Alembic 2017-01-31 22:42:43 -06:00
common do not mock private methods of objects from libraries 2017-01-28 01:47:44 +00:00
contrib Add 'vhdx' disk format. 2016-07-28 16:34:00 +00:00
db Port Glance Migrations to Alembic 2017-01-31 22:42:43 -06:00
domain Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
glare Add in missing log hints 2016-06-09 07:59:15 -07:00
hacking Hacking checks for not using dict iteration calls 2016-01-25 21:54:08 -08:00
image_cache Do not use service catalog for cache client 2016-11-07 16:38:52 +00:00
locale Imported Translations from Zanata 2016-10-15 09:24:52 +00:00
quota Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
registry Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
tests Port Glance Migrations to Alembic 2017-01-31 22:42:43 -06:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Use oslo.context features 2016-07-12 13:40:33 +10:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
i18n.py Drop use of 'oslo' namespace package 2015-04-28 18:57:45 +00:00
location.py Merge "Fixed indentation" 2016-10-20 14:36:35 +00:00
notifier.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
opts.py Add registry_client_opts to glance-cache.conf.sample 2016-08-18 17:37:44 +02:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Merge "Improving help text for send_identity_headers opt" 2016-09-01 03:20:56 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00