diff --git a/crates/db_schema/replaceable_schema/triggers.sql b/crates/db_schema/replaceable_schema/triggers.sql index 19355846f..4607c658d 100644 --- a/crates/db_schema/replaceable_schema/triggers.sql +++ b/crates/db_schema/replaceable_schema/triggers.sql @@ -836,7 +836,6 @@ CALL r.create_modlog_combined_trigger ('mod_remove_post'); CALL r.create_modlog_combined_trigger ('mod_transfer_community'); - -- Inbox: (replies, comment mentions, post mentions, and private_messages) CREATE PROCEDURE r.create_inbox_combined_trigger (table_name text) LANGUAGE plpgsql @@ -868,3 +867,4 @@ CALL r.create_inbox_combined_trigger ('person_comment_mention'); CALL r.create_inbox_combined_trigger ('person_post_mention'); CALL r.create_inbox_combined_trigger ('private_message'); + diff --git a/migrations/2024-12-10-193418_add_inbox_combined_table/down.sql b/migrations/2024-12-10-193418_add_inbox_combined_table/down.sql index a355f49f4..d701d7472 100644 --- a/migrations/2024-12-10-193418_add_inbox_combined_table/down.sql +++ b/migrations/2024-12-10-193418_add_inbox_combined_table/down.sql @@ -3,3 +3,4 @@ ALTER TABLE person_comment_mention RENAME TO person_mention; -- Drop the new tables DROP TABLE person_post_mention, inbox_combined; + diff --git a/migrations/2024-12-10-193418_add_inbox_combined_table/up.sql b/migrations/2024-12-10-193418_add_inbox_combined_table/up.sql index 2cc0246d2..921d19004 100644 --- a/migrations/2024-12-10-193418_add_inbox_combined_table/up.sql +++ b/migrations/2024-12-10-193418_add_inbox_combined_table/up.sql @@ -1,8 +1,6 @@ -- Creates combined tables for -- Inbox: (replies, comment mentions, post mentions, and private_messages) - -- Also add post mentions, since these didn't exist before. - -- Rename the person_mention table to person_comment_mention ALTER TABLE person_mention RENAME TO person_comment_mention;