Files
pragativeer-v2/backend/fix_tier.py

11 lines
373 B
Python

import asyncio
from sqlmodel import create_engine, text
DATABASE_URL = "postgresql://pragativeer_admin:local_secure_password_2026@postgres:5432/pragativeer_prod"
engine = create_engine(DATABASE_URL)
with engine.connect() as conn:
conn.execute(text("UPDATE \"user\" SET tier = 'AI Coach' WHERE tier = 'Al_Coach';"))
conn.commit()
print('Updated successfully')