lemmy/migrations/2020-12-02-152437_create_site_aggregates/down.sql
Dessalines be1389420b
Adding SQL format checking via pg_format / pgFormatter (#3740)
* 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.
2023-08-02 12:44:51 -04:00

23 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;