Skip to content

Commit e5aa1b8

Browse files
committed
pgsql upgrade fix
1 parent fb0bb6d commit e5aa1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sogs/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def user_perm_future_updates(conn):
561561
INSERT INTO user_ban_futures (room, "user", at, banned)
562562
SELECT room, "user", at, banned FROM user_permission_futures WHERE banned is NOT NULL;
563563
564-
ALTER TABLE user_permission_futures DROP PRIMARY KEY;
564+
ALTER TABLE user_permission_futures DROP CONSTRAINT user_permission_futures_pkey;
565565
ALTER TABLE user_permission_futures DROP COLUMN banned;
566566
"""
567567
)

0 commit comments

Comments
 (0)