Skip to content

Commit

Permalink
signalmeow/store: fix constraint in db upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 19, 2025
1 parent ee976ea commit 5b0df8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/signalmeow/store/upgrades/00-latest.sql
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ CREATE TABLE signalmeow_backup_message (
CONSTRAINT signalmeow_backup_message_device_fkey FOREIGN KEY (account_id)
REFERENCES signalmeow_device (aci_uuid) ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE INDEX signalmeow_backup_chat_recipient_id_idx ON signalmeow_backup_chat (account_id, chat_id);
CREATE INDEX signalmeow_backup_message_chat_id_idx ON signalmeow_backup_message (account_id, chat_id);
2 changes: 1 addition & 1 deletion pkg/signalmeow/store/upgrades/19-store-backup-data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ CREATE TABLE signalmeow_backup_message (
CONSTRAINT signalmeow_backup_message_device_fkey FOREIGN KEY (account_id)
REFERENCES signalmeow_device (aci_uuid) ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE INDEX signalmeow_backup_chat_recipient_id_idx ON signalmeow_backup_chat (account_id, chat_id);
CREATE INDEX signalmeow_backup_message_chat_id_idx ON signalmeow_backup_message (account_id, chat_id);

0 comments on commit 5b0df8b

Please sign in to comment.