Fix the squashed image migration to insert the proper image transformation type.

This commit is contained in:
Jake Moshenko 2014-10-08 11:47:02 -04:00
parent 1a8287af55
commit c34a8b6727

View file

@ -21,6 +21,10 @@ def upgrade(tables):
sa.PrimaryKeyConstraint('id', name=op.f('pk_imagestoragetransformation'))
)
op.create_index('imagestoragetransformation_name', 'imagestoragetransformation', ['name'], unique=True)
op.bulk_insert(tables.imagestoragetransformation,
[
{'id':1, 'name':'squash'},
])
op.create_table('derivedimagestorage',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('source_id', sa.Integer(), nullable=True),