Pridani editace fotek

This commit is contained in:
Michal Kváček
2023-10-27 22:30:59 +02:00
parent 322e61bce3
commit 3223d2ac00
17 changed files with 602 additions and 54 deletions
@@ -0,0 +1,34 @@
"""add crop info
Revision ID: c3aef4ae2669
Revises: 2acb6fa61028
Create Date: 2023-10-20 23:53:21.772545
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c3aef4ae2669'
down_revision = '2acb6fa61028'
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('photo_adjustment', sa.Column('crop_left', sa.Float(), nullable=True))
op.add_column('photo_adjustment', sa.Column('crop_top', sa.Float(), nullable=True))
op.add_column('photo_adjustment', sa.Column('crop_width', sa.Float(), nullable=True))
op.add_column('photo_adjustment', sa.Column('crop_height', sa.Float(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('photo_adjustment', 'crop_height')
op.drop_column('photo_adjustment', 'crop_width')
op.drop_column('photo_adjustment', 'crop_top')
op.drop_column('photo_adjustment', 'crop_left')
# ### end Alembic commands ###