db: Move 'schema' module up a level

We want to remove the old sqlalchemy-migrate based migrations. Move the
only remaining module we need from this up a level so we can 'rm -rf'
the entire directory in a future change.

Change-Id: I3b1a1668c48e3136fd91b1418e00c38deec76bb5
Implements: blueprint remove-sqlalchemy-migrate
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2020-10-29 16:08:06 +00:00
parent 2b62197f91
commit a75aa3863a
24 changed files with 24 additions and 25 deletions

View File

@ -17,7 +17,7 @@ from alembic import op
from sqlalchemy.schema import (
Column, PrimaryKeyConstraint, ForeignKeyConstraint)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, BigInteger, String, Text, Numeric) # noqa

View File

@ -18,7 +18,7 @@ from sqlalchemy import sql
from sqlalchemy.schema import (
Column, PrimaryKeyConstraint, ForeignKeyConstraint, UniqueConstraint)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, BigInteger, String, Text) # noqa
from glance.db.sqlalchemy.models import JSONEncodedDict

View File

@ -17,7 +17,7 @@ from alembic import op
from sqlalchemy.schema import (
Column, PrimaryKeyConstraint, ForeignKeyConstraint, UniqueConstraint)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, Text) # noqa
from glance.db.sqlalchemy.models import JSONEncodedDict

View File

@ -17,7 +17,7 @@ from alembic import op
from sqlalchemy.schema import (
Column, PrimaryKeyConstraint, ForeignKeyConstraint)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, String, Text) # noqa
from glance.db.sqlalchemy.models import JSONEncodedDict

View File

@ -15,7 +15,7 @@
from sqlalchemy.schema import (Column, MetaData, Table)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, Text, create_tables) # noqa

View File

@ -16,7 +16,7 @@
from sqlalchemy.schema import (
Column, ForeignKey, Index, MetaData, Table, UniqueConstraint)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, Text, create_tables,
from_migration_import) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy import Column, MetaData, Table, and_, select
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, Text, from_migration_import) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy import Column, MetaData, Table
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, Text, from_migration_import) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy import Column, MetaData, Table
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, BigInteger, Integer, String,
Text, from_migration_import) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy import Index, MetaData
from glance.db.sqlalchemy.migrate_repo.schema import from_migration_import
from glance.db.sqlalchemy.schema import from_migration_import
def get_images_table(meta):

View File

@ -15,7 +15,7 @@
from sqlalchemy import Column, MetaData, Table
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, BigInteger, Integer, String,
Text) # noqa

View File

@ -16,7 +16,7 @@
from sqlalchemy import Column, ForeignKey, Index, MetaData, Table
from sqlalchemy import UniqueConstraint
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, create_tables,
from_migration_import) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy import Column, MetaData, Table
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, Text) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy import MetaData
from glance.db.sqlalchemy.migrate_repo.schema import from_migration_import
from glance.db.sqlalchemy.schema import from_migration_import
def get_images_table(meta):

View File

@ -15,7 +15,7 @@
from sqlalchemy import schema
from glance.db.sqlalchemy.migrate_repo import schema as glance_schema
from glance.db.sqlalchemy import schema as glance_schema
def define_image_tags_table(meta):

View File

@ -15,7 +15,7 @@
import sqlalchemy
from glance.db.sqlalchemy.migrate_repo import schema
from glance.db.sqlalchemy import schema
def upgrade(migrate_engine):

View File

@ -15,7 +15,7 @@
import sqlalchemy
from glance.db.sqlalchemy.migrate_repo import schema
from glance.db.sqlalchemy import schema
def upgrade(migrate_engine):

View File

@ -16,7 +16,7 @@
from sqlalchemy.schema import (Column, MetaData, Table, Index)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, String, Text, create_tables) # noqa

View File

@ -15,9 +15,8 @@
from sqlalchemy.schema import (Column, ForeignKey, MetaData, Table)
from glance.db.sqlalchemy.migrate_repo.schema import (String,
Text,
create_tables) # noqa
from glance.db.sqlalchemy.schema import (
String, Text, create_tables) # noqa
TASKS_MIGRATE_COLUMNS = ['input', 'message', 'result']

View File

@ -15,7 +15,7 @@
import six
import sqlalchemy
from glance.db.sqlalchemy.migrate_repo import schema
from glance.db.sqlalchemy import schema
def upgrade(migrate_engine):

View File

@ -17,7 +17,7 @@ from sqlalchemy.schema import (
Column, ForeignKey, Index, MetaData, Table, UniqueConstraint) # noqa
from glance.common import timeutils
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
Boolean, DateTime, Integer, String, Text, create_tables) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy.schema import (
Column, Index, MetaData, Table, UniqueConstraint) # noqa
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
DateTime, Integer, String, create_tables) # noqa

View File

@ -15,7 +15,7 @@
from sqlalchemy.schema import (Column, ForeignKey, Index, MetaData, Table)
from glance.db.sqlalchemy.migrate_repo.schema import (
from glance.db.sqlalchemy.schema import (
BigInteger, Boolean, DateTime, Integer, Numeric, String, Text,
create_tables) # noqa