Skip to content

Commit

Permalink
Fixed migration generator dropping auto refresh triggers in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Aug 8, 2024
1 parent 07873b4 commit 86410da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ihp-ide/IHP/IDE/CodeGen/MigrationGenerator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86410da

Please sign in to comment.