статусы

This commit is contained in:
Artem Tsyrulnikov
2026-01-28 17:15:28 +03:00
parent e87958fb60
commit 2627cafa91
11 changed files with 333 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
# ruff: noqa
# mypy: ignore-errors
from tortoise import BaseDBAsyncClient
RUN_IN_TRANSACTION = True
async def upgrade(db: BaseDBAsyncClient) -> str:
return """
ALTER TABLE "placement_post" ADD "status" VARCHAR(64) NOT NULL DEFAULT 'Без статуса';
"""
async def downgrade(db: BaseDBAsyncClient) -> str:
return """
ALTER TABLE "placement_post" DROP COLUMN "status";
"""