From: Dessalines Date: Thu, 17 Dec 2020 20:29:10 +0000 (-0500) Subject: Dropping the unecessary views and table triggers. X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/static/%7Bpost_view.post.url%7D?a=commitdiff_plain;h=6d96f105c60cb522a1fb4da0f418abc25551014c;p=lemmy.git Dropping the unecessary views and table triggers. --- diff --git a/migrations/2020-12-17-031053_remove_fast_tables_and_views/up.sql b/migrations/2020-12-17-031053_remove_fast_tables_and_views/up.sql index 803a5c46..cafa48ce 100644 --- a/migrations/2020-12-17-031053_remove_fast_tables_and_views/up.sql +++ b/migrations/2020-12-17-031053_remove_fast_tables_and_views/up.sql @@ -1,3 +1,26 @@ +-- 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,