bump migration ts

This commit is contained in:
IC Rainbow 2024-01-02 15:08:22 +02:00
parent 4eebb4e746
commit acd2c42809
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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;

View File

@ -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