mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-11 01:57:20 +00:00
working create/send/tail
This commit is contained in:
@@ -9,7 +9,7 @@ m20231219_note_folders :: Query
|
||||
m20231219_note_folders =
|
||||
[sql|
|
||||
CREATE TABLE note_folders (
|
||||
notes_folder_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
note_folder_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id INTEGER NOT NULL REFERENCES users ON DELETE CASCADE,
|
||||
display_name TEXT NOT NULL,
|
||||
local_display_name TEXT NOT NULL,
|
||||
@@ -29,7 +29,9 @@ m20231219_note_folders =
|
||||
local_display_name
|
||||
);
|
||||
|
||||
ALTER TABLE chat_items ADD COLUMN notes_folder_id INTEGER DEFAULT NULL REFERENCES note_folders ON DELETE CASCADE;
|
||||
ALTER TABLE chat_items ADD COLUMN note_folder_id INTEGER DEFAULT NULL REFERENCES note_folders ON DELETE CASCADE;
|
||||
ALTER TABLE messages ADD COLUMN note_folder_id INTEGER DEFAULT NULL REFERENCES note_folders ON DELETE CASCADE;
|
||||
ALTER TABLE chat_item_reactions ADD COLUMN note_folder_id INTEGER DEFAULT NULL REFERENCES note_folders ON DELETE CASCADE;
|
||||
|]
|
||||
|
||||
down_m20231219_note_folders :: Query
|
||||
@@ -37,5 +39,7 @@ down_m20231219_note_folders =
|
||||
[sql|
|
||||
DROP INDEX idx_note_folders_user_id_local_display_name;
|
||||
DROP TABLE note_folders;
|
||||
ALTER TABLE chat_items DROP COLUMN notes_folder_id;
|
||||
ALTER TABLE chat_items DROP COLUMN note_folder_id;
|
||||
ALTER TABLE messages DROP COLUMN note_folder_id;
|
||||
ALTER TABLE chat_item_reactions DROP COLUMN note_folder_id;
|
||||
|]
|
||||
|
||||
Reference in New Issue
Block a user