mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 03:11:32 +00:00
Fixing sql_format.
This commit is contained in:
parent
c8a2652e3f
commit
37aa20057c
3 changed files with 2 additions and 3 deletions
|
@ -836,7 +836,6 @@ CALL r.create_modlog_combined_trigger ('mod_remove_post');
|
||||||
|
|
||||||
CALL r.create_modlog_combined_trigger ('mod_transfer_community');
|
CALL r.create_modlog_combined_trigger ('mod_transfer_community');
|
||||||
|
|
||||||
|
|
||||||
-- Inbox: (replies, comment mentions, post mentions, and private_messages)
|
-- Inbox: (replies, comment mentions, post mentions, and private_messages)
|
||||||
CREATE PROCEDURE r.create_inbox_combined_trigger (table_name text)
|
CREATE PROCEDURE r.create_inbox_combined_trigger (table_name text)
|
||||||
LANGUAGE plpgsql
|
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 ('person_post_mention');
|
||||||
|
|
||||||
CALL r.create_inbox_combined_trigger ('private_message');
|
CALL r.create_inbox_combined_trigger ('private_message');
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,4 @@ ALTER TABLE person_comment_mention RENAME TO person_mention;
|
||||||
|
|
||||||
-- Drop the new tables
|
-- Drop the new tables
|
||||||
DROP TABLE person_post_mention, inbox_combined;
|
DROP TABLE person_post_mention, inbox_combined;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
-- Creates combined tables for
|
-- Creates combined tables for
|
||||||
-- Inbox: (replies, comment mentions, post mentions, and private_messages)
|
-- Inbox: (replies, comment mentions, post mentions, and private_messages)
|
||||||
|
|
||||||
-- Also add post mentions, since these didn't exist before.
|
-- Also add post mentions, since these didn't exist before.
|
||||||
|
|
||||||
-- Rename the person_mention table to person_comment_mention
|
-- Rename the person_mention table to person_comment_mention
|
||||||
ALTER TABLE person_mention RENAME TO person_comment_mention;
|
ALTER TABLE person_mention RENAME TO person_comment_mention;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue