Spaces:
Runtime error
Runtime error
File size: 357 Bytes
7647b38 | 1 2 3 4 5 6 7 8 9 10 11 12 | 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())
|