forked from mtusi2026/mtusi2026lab5
21 lines
350 B
Python
21 lines
350 B
Python
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision = "ffdfa8869ddc"
|
|
down_revision = "e090e7a3e071"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"attachments",
|
|
sa.Column("webp_key", sa.String(), nullable=True)
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("attachments", "webp_key")
|