mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 12:21:31 +00:00
be1389420b
* SQL format checking, 1. * SQL format checking, 2. * SQL format checking, 3. * SQL format checking, 4. * SQL format checking, 5. * Running pg_format * Getting rid of comment. * Upping pg_format version. * Using git ls-files for sql format check. * Fixing sql lints. * Addressing PR comments.
26 lines
1.5 KiB
SQL
26 lines
1.5 KiB
SQL
-- Drop triggers
|
|
DROP TRIGGER IF EXISTS refresh_comment ON comment;
|
|
|
|
DROP TRIGGER IF EXISTS refresh_comment_like ON comment_like;
|
|
|
|
DROP TRIGGER IF EXISTS refresh_community ON community;
|
|
|
|
DROP TRIGGER IF EXISTS refresh_community_follower ON community_follower;
|
|
|
|
DROP TRIGGER IF EXISTS refresh_community_user_ban ON community_user_ban;
|
|
|
|
DROP TRIGGER IF EXISTS refresh_post ON post;
|
|
|
|
DROP TRIGGER IF EXISTS refresh_post_like ON post_like;
|
|
|
|
DROP TRIGGER IF EXISTS refresh_user ON user_;
|
|
|
|
-- Drop functions
|
|
DROP FUNCTION IF EXISTS refresh_comment, refresh_comment_like, refresh_community, refresh_community_follower, refresh_community_user_ban, refresh_post, refresh_post_like, refresh_private_message, refresh_user CASCADE;
|
|
|
|
-- Drop views
|
|
DROP VIEW IF EXISTS comment_aggregates_view, comment_fast_view, comment_report_view, comment_view, community_aggregates_view, community_fast_view, community_follower_view, community_moderator_view, community_user_ban_view, community_view, mod_add_community_view, mod_add_view, mod_ban_from_community_view, mod_ban_view, mod_lock_post_view, mod_remove_comment_view, mod_remove_community_view, mod_remove_post_view, mod_sticky_post_view, post_aggregates_view, post_fast_view, post_report_view, post_view, private_message_view, reply_fast_view, site_view, user_mention_fast_view, user_mention_view, user_view CASCADE;
|
|
|
|
-- Drop fast tables
|
|
DROP TABLE IF EXISTS comment_aggregates_fast, community_aggregates_fast, post_aggregates_fast, user_fast CASCADE;
|
|
|