mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-09 18:08:00 +00:00
fix queries for migrations
This commit is contained in:
parent
c5acc5aa16
commit
7329ef4fd9
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue