Squash database patches
Remove patches up to the Mitaka release to speed up initial deployment and tests, as we don't support previous versions anymore. Closes-bug: #1672630 Change-Id: I4f821176cb11ca3dc3af247238ba3c4fbc20a092
This commit is contained in:
parent
148e969f3d
commit
cb4640d67d
|
@ -1,20 +0,0 @@
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# This is a placeholder for Liberty backports.
|
|
||||||
# Do not use this number for new Mitaka work. New Mitaka work starts after
|
|
||||||
# all the placeholders.
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade(migrate_engine):
|
|
||||||
pass
|
|
|
@ -1,20 +0,0 @@
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# This is a placeholder for Liberty backports.
|
|
||||||
# Do not use this number for new Mitaka work. New Mitaka work starts after
|
|
||||||
# all the placeholders.
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade(migrate_engine):
|
|
||||||
pass
|
|
|
@ -1,20 +0,0 @@
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# This is a placeholder for Liberty backports.
|
|
||||||
# Do not use this number for new Mitaka work. New Mitaka work starts after
|
|
||||||
# all the placeholders.
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade(migrate_engine):
|
|
||||||
pass
|
|
|
@ -1,20 +0,0 @@
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# This is a placeholder for Liberty backports.
|
|
||||||
# Do not use this number for new Mitaka work. New Mitaka work starts after
|
|
||||||
# all the placeholders.
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade(migrate_engine):
|
|
||||||
pass
|
|
|
@ -1,20 +0,0 @@
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# This is a placeholder for Liberty backports.
|
|
||||||
# Do not use this number for new Mitaka work. New Mitaka work starts after
|
|
||||||
# all the placeholders.
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade(migrate_engine):
|
|
||||||
pass
|
|
|
@ -91,6 +91,7 @@ def upgrade(migrate_engine):
|
||||||
sqlalchemy.Column('parent_resource_name', sqlalchemy.String(255)),
|
sqlalchemy.Column('parent_resource_name', sqlalchemy.String(255)),
|
||||||
sqlalchemy.Index('ix_stack_name', 'name', mysql_length=255),
|
sqlalchemy.Index('ix_stack_name', 'name', mysql_length=255),
|
||||||
sqlalchemy.Index('ix_stack_tenant', 'tenant', mysql_length=255),
|
sqlalchemy.Index('ix_stack_tenant', 'tenant', mysql_length=255),
|
||||||
|
sqlalchemy.Index('ix_stack_owner_id', 'owner_id', mysql_length=36),
|
||||||
|
|
||||||
mysql_engine='InnoDB',
|
mysql_engine='InnoDB',
|
||||||
mysql_charset='utf8'
|
mysql_charset='utf8'
|
|
@ -1,22 +0,0 @@
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
import sqlalchemy
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade(migrate_engine):
|
|
||||||
meta = sqlalchemy.MetaData(bind=migrate_engine)
|
|
||||||
stack = sqlalchemy.Table('stack', meta, autoload=True)
|
|
||||||
name_index = sqlalchemy.Index('ix_stack_owner_id', stack.c.owner_id,
|
|
||||||
mysql_length=36)
|
|
||||||
name_index.create(migrate_engine)
|
|
|
@ -16,7 +16,7 @@ import os
|
||||||
from oslo_db.sqlalchemy import migration as oslo_migration
|
from oslo_db.sqlalchemy import migration as oslo_migration
|
||||||
|
|
||||||
|
|
||||||
INIT_VERSION = 64
|
INIT_VERSION = 70
|
||||||
|
|
||||||
|
|
||||||
def db_sync(engine, version=None):
|
def db_sync(engine, version=None):
|
||||||
|
|
Loading…
Reference in New Issue