Fix the squashed image migration to insert the proper image transformation type.
This commit is contained in:
parent
1a8287af55
commit
c34a8b6727
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ def upgrade(tables):
|
||||||
sa.PrimaryKeyConstraint('id', name=op.f('pk_imagestoragetransformation'))
|
sa.PrimaryKeyConstraint('id', name=op.f('pk_imagestoragetransformation'))
|
||||||
)
|
)
|
||||||
op.create_index('imagestoragetransformation_name', 'imagestoragetransformation', ['name'], unique=True)
|
op.create_index('imagestoragetransformation_name', 'imagestoragetransformation', ['name'], unique=True)
|
||||||
|
op.bulk_insert(tables.imagestoragetransformation,
|
||||||
|
[
|
||||||
|
{'id':1, 'name':'squash'},
|
||||||
|
])
|
||||||
op.create_table('derivedimagestorage',
|
op.create_table('derivedimagestorage',
|
||||||
sa.Column('id', sa.Integer(), nullable=False),
|
sa.Column('id', sa.Integer(), nullable=False),
|
||||||
sa.Column('source_id', sa.Integer(), nullable=True),
|
sa.Column('source_id', sa.Integer(), nullable=True),
|
||||||
|
|
Reference in a new issue