lemmy/migrations/2020-12-03-035643_create_user_aggregates/down.sql

16 lines
470 B
MySQL
Raw Normal View History

2020-12-03 10:18:17 -05:00
-- User aggregates
DROP TABLE user_aggregates;
DROP TRIGGER user_aggregates_user ON user_;
DROP TRIGGER user_aggregates_post_count ON post;
DROP TRIGGER user_aggregates_post_score ON post_like;
DROP TRIGGER user_aggregates_comment_count ON comment;
DROP TRIGGER user_aggregates_comment_score ON comment_like;
DROP FUNCTION user_aggregates_user, user_aggregates_post_count, user_aggregates_post_score, user_aggregates_comment_count, user_aggregates_comment_score;