32 lines
1016 B
Python
Executable File
32 lines
1016 B
Python
Executable File
"""增加生成图片的比例像素
|
|
|
|
Revision ID: 5d2db654417b
|
|
Revises: d54d06438b25
|
|
Create Date: 2026-05-19 17:51:16.099136
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = '5d2db654417b'
|
|
down_revision: Union[str, None] = 'd54d06438b25'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('generation_records', sa.Column('image_proportion', sa.String(length=8), nullable=True))
|
|
op.add_column('generation_records', sa.Column('image_px', sa.String(length=10), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('generation_records', 'image_px')
|
|
op.drop_column('generation_records', 'image_proportion')
|
|
# ### end Alembic commands ###
|