basaHoushanApi/migrations/models/1_20250106145739_update_bil...

12 lines
284 B
Python

from tortoise import BaseDBAsyncClient
async def upgrade(db: BaseDBAsyncClient) -> str:
return """
ALTER TABLE "billings" ADD "code" VARCHAR(8);"""
async def downgrade(db: BaseDBAsyncClient) -> str:
return """
ALTER TABLE "billings" DROP COLUMN "code";"""