Skip to content

Commit 0f8e5ef

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Update migration constant"
2 parents 3929db2 + 9786936 commit 0f8e5ef

14 files changed

+363
-16
lines changed

glance/db/migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
# Migration-related constants
3030
EXPAND_BRANCH = 'expand'
3131
CONTRACT_BRANCH = 'contract'
32-
CURRENT_RELEASE = 'zed'
32+
CURRENT_RELEASE = '2023_1'
3333
ALEMBIC_INIT_VERSION = 'liberty'
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (C) 2021 RedHat Inc.
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
def has_migrations(engine):
18+
"""Returns true if at least one data row can be migrated."""
19+
20+
return False
21+
22+
23+
def migrate(engine):
24+
"""Return the number of rows migrated."""
25+
26+
return 0
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (C) 2021 RedHat Inc.
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
def has_migrations(engine):
18+
"""Returns true if at least one data row can be migrated."""
19+
20+
return False
21+
22+
23+
def migrate(engine):
24+
"""Return the number of rows migrated."""
25+
26+
return 0
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (C) 2021 RedHat Inc.
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
def has_migrations(engine):
18+
"""Returns true if at least one data row can be migrated."""
19+
20+
return False
21+
22+
23+
def migrate(engine):
24+
"""Return the number of rows migrated."""
25+
26+
return 0
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (C) 2021 RedHat Inc.
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
def has_migrations(engine):
18+
"""Returns true if at least one data row can be migrated."""
19+
20+
return False
21+
22+
23+
def migrate(engine):
24+
"""Return the number of rows migrated."""
25+
26+
return 0
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (C) 2020 RedHat Inc
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
# revision identifiers, used by Alembic.
18+
revision = '2023_1_contract01'
19+
down_revision = 'zed_contract01'
20+
branch_labels = None
21+
depends_on = '2023_1_expand01'
22+
23+
24+
def upgrade():
25+
pass
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (C) 2020 RedHat Inc
2+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
3+
# not use this file except in compliance with the License. You may obtain
4+
# a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11+
# License for the specific language governing permissions and limitations
12+
# under the License.
13+
14+
"""empty expand for symmetry with 2023_1_expand01
15+
16+
Revision ID: ussuri_expand01
17+
Revises: train_expand01
18+
Create Date: 2020-01-03 11:55:16.657499
19+
20+
"""
21+
22+
# revision identifiers, used by Alembic.
23+
revision = '2023_1_expand01'
24+
down_revision = 'zed_expand01'
25+
branch_labels = None
26+
depends_on = None
27+
28+
29+
def upgrade():
30+
pass
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (C) 2020 RedHat Inc
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
# revision identifiers, used by Alembic.
18+
revision = 'xena_contract01'
19+
down_revision = 'wallaby_contract01'
20+
branch_labels = None
21+
depends_on = 'xena_expand01'
22+
23+
24+
def upgrade():
25+
pass
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (C) 2020 RedHat Inc
2+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
3+
# not use this file except in compliance with the License. You may obtain
4+
# a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11+
# License for the specific language governing permissions and limitations
12+
# under the License.
13+
14+
"""empty expand for symmetry with 2023_1_expand01
15+
16+
Revision ID: ussuri_expand01
17+
Revises: train_expand01
18+
Create Date: 2020-01-03 11:55:16.657499
19+
20+
"""
21+
22+
# revision identifiers, used by Alembic.
23+
revision = 'xena_expand01'
24+
down_revision = 'wallaby_expand01'
25+
branch_labels = None
26+
depends_on = None
27+
28+
29+
def upgrade():
30+
pass
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (C) 2020 RedHat Inc
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
# revision identifiers, used by Alembic.
18+
revision = 'yoga_contract01'
19+
down_revision = 'xena_contract01'
20+
branch_labels = None
21+
depends_on = 'yoga_expand01'
22+
23+
24+
def upgrade():
25+
pass

0 commit comments

Comments
 (0)