diff --git a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20240624_snd_secure.hs b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20240624_snd_secure.hs index 7f82d4ecf..2331dd4aa 100644 --- a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20240624_snd_secure.hs +++ b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20240624_snd_secure.hs @@ -17,7 +17,7 @@ UPDATE sqlite_master SET sql = replace(sql, 'sender_key BLOB NOT NULL,', 'sender_key BLOB,') WHERE name = 'conn_confirmations' AND type = 'table'; -PRAGMA writable_schema=0; +PRAGMA writable_schema=RESET; |] down_m20240624_snd_secure :: Query @@ -32,5 +32,5 @@ UPDATE sqlite_master SET sql = replace(sql, 'sender_key BLOB,', 'sender_key BLOB NOT NULL,') WHERE name = 'conn_confirmations' AND type = 'table'; -PRAGMA writable_schema=0; +PRAGMA writable_schema=RESET; |] diff --git a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20250702_conn_invitations_remove_cascade_delete.hs b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20250702_conn_invitations_remove_cascade_delete.hs index 9abccb476..72d2502e1 100644 --- a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20250702_conn_invitations_remove_cascade_delete.hs +++ b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20250702_conn_invitations_remove_cascade_delete.hs @@ -18,7 +18,7 @@ SET sql = replace( ) WHERE name = 'conn_invitations' AND type = 'table'; -PRAGMA writable_schema=0; +PRAGMA writable_schema=RESET; |] down_m20250702_conn_invitations_remove_cascade_delete :: Query @@ -34,5 +34,5 @@ SET sql = replace( ) WHERE name = 'conn_invitations' AND type = 'table'; -PRAGMA writable_schema=0; +PRAGMA writable_schema=RESET; |] diff --git a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20251230_strict_tables.hs b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20251230_strict_tables.hs index 3d05e054a..28c13699f 100644 --- a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20251230_strict_tables.hs +++ b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations/M20251230_strict_tables.hs @@ -28,7 +28,7 @@ UPDATE sqlite_master SET sql = replace(sql, 'device_token TEXT NOT NULL', 'device_token BLOB NOT NULL') WHERE type = 'table' AND name = 'ntf_tokens'; -PRAGMA writable_schema=0; +PRAGMA writable_schema=RESET; |] down_m20251230_strict_tables :: Query @@ -48,7 +48,7 @@ UPDATE sqlite_master SET sql = replace(sql, 'device_token BLOB NOT NULL', 'device_token TEXT NOT NULL') WHERE type = 'table' AND name = 'ntf_tokens'; -PRAGMA writable_schema=0; +PRAGMA writable_schema=RESET; UPDATE ntf_tokens SET ntf_mode = CAST(ntf_mode as BLOB);