Merge "db: Sync migrations, models"

This commit is contained in:
Zuul 2023-09-19 19:14:38 +00:00 committed by Gerrit Code Review
commit 18813914cc
1 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,9 @@ def _add_images_table():
op.create_table('images',
Column('id', String(length=36), nullable=False),
Column('name', String(length=255), nullable=True),
Column('size', BigInteger(), nullable=True),
Column('size',
BigInteger().with_variant(Integer, "sqlite"),
nullable=True),
Column('status', String(length=30), nullable=False),
Column('is_public', Boolean(), nullable=False),
Column('created_at', DateTime(), nullable=False),
@ -46,7 +48,9 @@ def _add_images_table():
Boolean(),
server_default=sql.false(),
nullable=False),
Column('virtual_size', BigInteger(), nullable=True),
Column('virtual_size',
BigInteger().with_variant(Integer, "sqlite"),
nullable=True),
PrimaryKeyConstraint('id'),
mysql_engine='InnoDB',
mysql_charset='utf8',