summaryrefslogtreecommitdiff
path: root/glance/db/sqlalchemy/alembic_migrations/versions
diff options
context:
space:
mode:
authorAbhishek Kekane <akekane@redhat.com>2019-06-17 08:06:15 +0000
committerAbhishek Kekane <akekane@redhat.com>2019-08-06 05:48:50 +0000
commitb4e3cb65ad2e04f0f5b94dcaf1fa951d01bfb025 (patch)
tree12f08f8a78f075daf8752b6eb49bd408dd43d30e /glance/db/sqlalchemy/alembic_migrations/versions
parent733095a89947718e54b610ad528f6243e6ece440 (diff)
downloadglance-b4e3cb65ad2e04f0f5b94dcaf1fa951d01bfb025.tar.gz
Add migration script to change backend to store
As glance is changing metadata value of location from 'backend' to 'store', adding migration script which will update old image locations to use 'store' as a metadata value. NOTE: Bump master (train development) to 19 Change-Id: I1386c535bc8ff4519e6b0bb879026b05c930b791 Sem-Ver: api-break
Diffstat (limited to 'glance/db/sqlalchemy/alembic_migrations/versions')
-rw-r--r--glance/db/sqlalchemy/alembic_migrations/versions/train_contract01_empty.py25
-rw-r--r--glance/db/sqlalchemy/alembic_migrations/versions/train_expand01_empty.py30
2 files changed, 55 insertions, 0 deletions
diff --git a/glance/db/sqlalchemy/alembic_migrations/versions/train_contract01_empty.py b/glance/db/sqlalchemy/alembic_migrations/versions/train_contract01_empty.py
new file mode 100644
index 000000000..eaa6b546d
--- /dev/null
+++ b/glance/db/sqlalchemy/alembic_migrations/versions/train_contract01_empty.py
@@ -0,0 +1,25 @@
+# Copyright (C) 2019 RedHat Inc
+# All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+# revision identifiers, used by Alembic.
+revision = 'train_contract01'
+down_revision = 'rocky_contract02'
+branch_labels = None
+depends_on = 'train_expand01'
+
+
+def upgrade():
+ pass
diff --git a/glance/db/sqlalchemy/alembic_migrations/versions/train_expand01_empty.py b/glance/db/sqlalchemy/alembic_migrations/versions/train_expand01_empty.py
new file mode 100644
index 000000000..d8fd277d8
--- /dev/null
+++ b/glance/db/sqlalchemy/alembic_migrations/versions/train_expand01_empty.py
@@ -0,0 +1,30 @@
+# Copyright (C) 2019 RedHat Inc
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+"""empty expand for symmetry with train_contract01
+
+Revision ID: train_expand01
+Revises: rocky_expand02
+Create Date: 2019-06-17 11:55:16.657499
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'train_expand01'
+down_revision = 'rocky_expand02'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+ pass