mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 07:41:20 +00:00
Create up.sql
This commit is contained in:
parent
edfc9acc45
commit
4201f9830a
1 changed files with 34 additions and 0 deletions
34
migrations/up.sql
Normal file
34
migrations/up.sql
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
-- Drop functions and use `CASCADE` to drop the triggers that use them
|
||||||
|
DROP FUNCTION
|
||||||
|
comment_aggregates_comment,
|
||||||
|
comment_aggregates_score,
|
||||||
|
comment_removed_resolve_reports,
|
||||||
|
community_aggregates_comment_count,
|
||||||
|
community_aggregates_community,
|
||||||
|
community_aggregates_post_count,
|
||||||
|
community_aggregates_post_count_insert,
|
||||||
|
community_aggregates_subscriber_count,
|
||||||
|
person_aggregates_comment_count,
|
||||||
|
person_aggregates_comment_score,
|
||||||
|
person_aggregates_person,
|
||||||
|
person_aggregates_post_count,
|
||||||
|
person_aggregates_post_insert,
|
||||||
|
person_aggregates_post_score,
|
||||||
|
post_aggregates_comment_count,
|
||||||
|
post_aggregates_featured_community,
|
||||||
|
post_aggregates_featured_local,
|
||||||
|
post_aggregates_post,
|
||||||
|
post_aggregates_score,
|
||||||
|
post_removed_resolve_reports,
|
||||||
|
site_aggregates_comment_delete,
|
||||||
|
site_aggregates_comment_insert,
|
||||||
|
site_aggregates_community_insert,
|
||||||
|
site_aggregates_person_delete,
|
||||||
|
site_aggregates_person_insert,
|
||||||
|
site_aggregates_post_delete,
|
||||||
|
site_aggregates_post_insert,
|
||||||
|
site_aggregates_post_update,
|
||||||
|
site_aggregates_site,
|
||||||
|
was_removed_or_deleted,
|
||||||
|
was_restored_or_created CASCADE;
|
||||||
|
|
Loading…
Reference in a new issue