diff options
author | Abhishek Kekane <akekane@redhat.com> | 2019-06-17 08:06:15 +0000 |
---|---|---|
committer | Abhishek Kekane <akekane@redhat.com> | 2019-08-06 05:48:50 +0000 |
commit | b4e3cb65ad2e04f0f5b94dcaf1fa951d01bfb025 (patch) | |
tree | 12f08f8a78f075daf8752b6eb49bd408dd43d30e /glance/db/sqlalchemy/alembic_migrations/versions | |
parent | 733095a89947718e54b610ad528f6243e6ece440 (diff) | |
download | glance-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.py | 25 | ||||
-rw-r--r-- | glance/db/sqlalchemy/alembic_migrations/versions/train_expand01_empty.py | 30 |
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 |