diff --git a/simplex-chat.cabal b/simplex-chat.cabal index 296e3b634..edc058cb8 100644 --- a/simplex-chat.cabal +++ b/simplex-chat.cabal @@ -129,7 +129,7 @@ library Simplex.Chat.Migrations.M20231207_chat_list_pagination Simplex.Chat.Migrations.M20231214_item_content_tag Simplex.Chat.Migrations.M20231215_recreate_msg_deliveries - Simplex.Chat.Migrations.M20231219_note_folders + Simplex.Chat.Migrations.M20240102_note_folders Simplex.Chat.Mobile Simplex.Chat.Mobile.File Simplex.Chat.Mobile.Shared diff --git a/src/Simplex/Chat/Migrations/M20231219_note_folders.hs b/src/Simplex/Chat/Migrations/M20240102_note_folders.hs similarity index 85% rename from src/Simplex/Chat/Migrations/M20231219_note_folders.hs rename to src/Simplex/Chat/Migrations/M20240102_note_folders.hs index 54d6c870e..3ea0a07f1 100644 --- a/src/Simplex/Chat/Migrations/M20231219_note_folders.hs +++ b/src/Simplex/Chat/Migrations/M20240102_note_folders.hs @@ -1,12 +1,12 @@ {-# LANGUAGE QuasiQuotes #-} -module Simplex.Chat.Migrations.M20231219_note_folders where +module Simplex.Chat.Migrations.M20240102_note_folders where import Database.SQLite.Simple (Query) import Database.SQLite.Simple.QQ (sql) -m20231219_note_folders :: Query -m20231219_note_folders = +m20240102_note_folders :: Query +m20240102_note_folders = [sql| CREATE TABLE note_folders ( note_folder_id INTEGER PRIMARY KEY AUTOINCREMENT, @@ -33,8 +33,8 @@ m20231219_note_folders = FROM users u; |] -down_m20231219_note_folders :: Query -down_m20231219_note_folders = +down_m20240102_note_folders :: Query +down_m20240102_note_folders = [sql| DROP TABLE note_folders; ALTER TABLE chat_items DROP COLUMN note_folder_id; diff --git a/src/Simplex/Chat/Store/Migrations.hs b/src/Simplex/Chat/Store/Migrations.hs index e3596c8f4..db70ffeab 100644 --- a/src/Simplex/Chat/Store/Migrations.hs +++ b/src/Simplex/Chat/Store/Migrations.hs @@ -94,7 +94,7 @@ import Simplex.Chat.Migrations.M20231126_remote_ctrl_address import Simplex.Chat.Migrations.M20231207_chat_list_pagination import Simplex.Chat.Migrations.M20231214_item_content_tag import Simplex.Chat.Migrations.M20231215_recreate_msg_deliveries -import Simplex.Chat.Migrations.M20231219_note_folders +import Simplex.Chat.Migrations.M20240102_note_folders import Simplex.Messaging.Agent.Store.SQLite.Migrations (Migration (..)) schemaMigrations :: [(String, Query, Maybe Query)] @@ -189,7 +189,7 @@ schemaMigrations = ("20231207_chat_list_pagination", m20231207_chat_list_pagination, Just down_m20231207_chat_list_pagination), ("20231214_item_content_tag", m20231214_item_content_tag, Just down_m20231214_item_content_tag), ("20231215_recreate_msg_deliveries", m20231215_recreate_msg_deliveries, Just down_m20231215_recreate_msg_deliveries), - ("20231219_note_folders", m20231219_note_folders, Just down_m20231219_note_folders) + ("20240102_note_folders", m20240102_note_folders, Just down_m20240102_note_folders) ] -- | The list of migrations in ascending order by date