fix queries for migrations

This commit is contained in:
Izalia Mae 2024-09-14 06:06:03 -04:00
parent c5acc5aa16
commit 7329ef4fd9

View file

@ -138,10 +138,10 @@ def migrate_20240206(conn: Connection) -> None:
@migration
def migrate_20240310(conn: Connection) -> None:
conn.execute('ALTER TABLE "inboxes" ADD COLUMN "accepted" BOOLEAN').close()
conn.execute('UPDATE "inboxes" SET accepted = 1').close()
conn.execute('UPDATE "inboxes" SET "accepted" = true').close()
@migration
def migrate_20240625(conn: Connection) -> None:
conn.create_tables()
conn.execute('DROP TABLE tokens').close()
conn.execute('DROP TABLE "tokens"').close()