From ce5521d1c7e57060c3ba10a063e12cb3eba62638 Mon Sep 17 00:00:00 2001 From: dullbananas Date: Fri, 22 Dec 2023 16:22:53 -0700 Subject: [PATCH] Update replaceable_schema.sql --- replaceable_schema.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/replaceable_schema.sql b/replaceable_schema.sql index a4287e4e9..866bc7089 100644 --- a/replaceable_schema.sql +++ b/replaceable_schema.sql @@ -4,6 +4,9 @@ -- except for these things which are associated with something other than a schema (usually a table): -- * A trigger if the function name after `EXECUTE FUNCTION` is in `r` (dropping `r` drops the trigger) -- +-- `r` is not temporarily set to the default schema because it would not affect some things (such as triggers) which +-- makes it hard to tell if the rule above is being followed. +-- -- If you add something in `r` that depends on something (such as a table) created in a new migration, then down.sql must use -- `CASCADE` when dropping it. This doesn't need to be fixed in old migrations because the "transactions-without-migrations" -- migration runs `DROP SCHEMA IF EXISTS r CASCADE` in down.sql.