lemmy/migrations/2020-12-02-152437_create_si.../down.sql

24 lines
819 B
SQL

-- Site aggregates
DROP TABLE site_aggregates;
DROP TRIGGER site_aggregates_site ON site;
DROP TRIGGER site_aggregates_user_insert ON user_;
DROP TRIGGER site_aggregates_user_delete ON user_;
DROP TRIGGER site_aggregates_post_insert ON post;
DROP TRIGGER site_aggregates_post_delete ON post;
DROP TRIGGER site_aggregates_comment_insert ON comment;
DROP TRIGGER site_aggregates_comment_delete ON comment;
DROP TRIGGER site_aggregates_community_insert ON community;
DROP TRIGGER site_aggregates_community_delete ON community;
DROP FUNCTION site_aggregates_site, site_aggregates_user_insert, site_aggregates_user_delete, site_aggregates_post_insert, site_aggregates_post_delete, site_aggregates_comment_insert, site_aggregates_comment_delete, site_aggregates_community_insert, site_aggregates_community_delete;