You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
447 B
13 lines
447 B
import asyncio
|
|
from sqlalchemy import text
|
|
from app.db import engine
|
|
|
|
async def main():
|
|
async with engine.begin() as conn:
|
|
await conn.execute(text("ALTER TABLE clusters DROP COLUMN IF EXISTS cpu_avg"))
|
|
await conn.execute(text("ALTER TABLE clusters DROP COLUMN IF EXISTS memory_avg"))
|
|
await conn.execute(text("ALTER TABLE clusters DROP COLUMN IF EXISTS last_avg_at"))
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|