diff --git a/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/down.sql b/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/down.sql index 6dd941011..597bf4a81 100644 --- a/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/down.sql +++ b/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/down.sql @@ -1,5 +1,5 @@ ALTER TABLE community_aggregates - DROP COLUMN local_subscribers; + DROP COLUMN local_subscribers; CREATE OR REPLACE FUNCTION community_aggregates_subscriber_count () RETURNS TRIGGER diff --git a/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/up.sql b/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/up.sql index 226b39fec..ab678087b 100644 --- a/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/up.sql +++ b/migrations/2023-11-15-200123_community_aggregates_add_local_subscribers/up.sql @@ -19,11 +19,7 @@ SET FROM person WHERE - local - ) - ) -; - + local)); CREATE OR REPLACE FUNCTION community_aggregates_subscriber_count () RETURNS TRIGGER