From 86410da14b77b85ed02f2ad09495ea2d6d7c4931 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Thu, 8 Aug 2024 11:15:21 -0400 Subject: [PATCH] Fixed migration generator dropping auto refresh triggers in migration --- ihp-ide/IHP/IDE/CodeGen/MigrationGenerator.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihp-ide/IHP/IDE/CodeGen/MigrationGenerator.hs b/ihp-ide/IHP/IDE/CodeGen/MigrationGenerator.hs index c21631b52..26d06faf9 100644 --- a/ihp-ide/IHP/IDE/CodeGen/MigrationGenerator.hs +++ b/ihp-ide/IHP/IDE/CodeGen/MigrationGenerator.hs @@ -188,7 +188,7 @@ removeNoise = filter \case StatementCreateTable { unsafeGetCreateTable = CreateTable { name = "schema_migrations" } } -> False AddConstraint { tableName = "schema_migrations" } -> False CreateFunction { functionName } | "notify_" `Text.isPrefixOf` functionName -> False - CreateTrigger { name } | any (`Text.isPrefixOf` name) ["did_update_", "did_delete_", "did_insert_"] -> False + CreateTrigger { name } | any (`Text.isPrefixOf` name) ["did_update_", "did_delete_", "did_insert_", "ar_did_update_", "ar_did_delete_", "ar_did_insert_"] -> False StatementCreateTable { unsafeGetCreateTable = CreateTable { name = "large_pg_notifications" } } -> False CreateIndex { tableName = "large_pg_notifications" } -> False _ -> True