This commit is contained in:
spaced4ndy 2025-02-28 20:43:37 +04:00
parent b4707dce08
commit f91cd3d2de
2 changed files with 13 additions and 10 deletions

View file

@ -316,7 +316,7 @@ CREATE TABLE user_contact_links(
group_link_id BLOB, group_link_id BLOB,
group_link_member_role TEXT NULL, group_link_member_role TEXT NULL,
business_address INTEGER DEFAULT 0, business_address INTEGER DEFAULT 0,
group_link_auto_accept TEXT NULL, group_link_auto_accept TEXT,
UNIQUE(user_id, local_display_name) UNIQUE(user_id, local_display_name)
); );
CREATE TABLE contact_requests( CREATE TABLE contact_requests(
@ -983,14 +983,6 @@ CREATE INDEX idx_chat_items_groups_msg_content_tag_deleted ON chat_items(
item_deleted, item_deleted,
item_sent item_sent
); );
CREATE INDEX idx_chat_items_groups_history ON chat_items(
user_id,
group_id,
include_in_history,
item_deleted,
item_ts,
chat_item_id
);
CREATE INDEX idx_group_snd_item_statuses_chat_item_id_group_member_id ON group_snd_item_statuses( CREATE INDEX idx_group_snd_item_statuses_chat_item_id_group_member_id ON group_snd_item_statuses(
chat_item_id, chat_item_id,
group_member_id group_member_id
@ -1019,3 +1011,12 @@ CREATE INDEX idx_chat_items_group_id_shared_msg_id ON chat_items(
group_id, group_id,
shared_msg_id shared_msg_id
); );
CREATE INDEX idx_chat_items_groups_history ON chat_items(
user_id,
group_id,
include_in_history,
item_deleted,
group_member_id,
item_ts,
chat_item_id
);

View file

@ -125,7 +125,9 @@ skipComparisonForDownMigrations =
-- indexes move down to the end of the file -- indexes move down to the end of the file
"20241125_indexes", "20241125_indexes",
-- indexes move down to the end of the file -- indexes move down to the end of the file
"20250130_indexes" "20250130_indexes",
-- index moves down to the end of the file
"20250227_member_acceptance"
] ]
getSchema :: FilePath -> FilePath -> IO String getSchema :: FilePath -> FilePath -> IO String