Spaces:
Sleeping
Sleeping
| import asyncio | |
| from sqlalchemy import text | |
| from app.core.database import engine | |
| async def alter_enum(): | |
| async with engine.begin() as conn: | |
| # Add patti_awaak to the enum | |
| await conn.execute(text("ALTER TYPE partytype ADD VALUE IF NOT EXISTS 'patti_awaak'")) | |
| print('Added patti_awaak to partytype enum') | |
| asyncio.run(alter_enum()) | |