diff --git a/migrations/2024-07-01-014711_exponential_controversy/down.sql b/migrations/2024-07-01-014711_exponential_controversy/down.sql deleted file mode 100644 index 15a7f296a..000000000 --- a/migrations/2024-07-01-014711_exponential_controversy/down.sql +++ /dev/null @@ -1,17 +0,0 @@ -UPDATE - post_aggregates -SET - controversy_rank = CASE WHEN downvotes <= 0 - OR upvotes <= 0 THEN - 0 - ELSE - (upvotes + downvotes) * CASE WHEN upvotes > downvotes THEN - downvotes::float / upvotes::float - ELSE - upvotes::float / downvotes::float - END - END -WHERE - upvotes > 0 - AND downvotes > 0; - diff --git a/migrations/2024-07-01-014711_exponential_controversy/up.sql b/migrations/2024-07-01-014711_exponential_controversy/up.sql deleted file mode 100644 index 87a700de3..000000000 --- a/migrations/2024-07-01-014711_exponential_controversy/up.sql +++ /dev/null @@ -1,17 +0,0 @@ -UPDATE - post_aggregates -SET - controversy_rank = CASE WHEN downvotes <= 0 - OR upvotes <= 0 THEN - 0 - ELSE - (upvotes + downvotes) ^ CASE WHEN upvotes > downvotes THEN - downvotes::float / upvotes::float - ELSE - upvotes::float / downvotes::float - END - END -WHERE - upvotes > 0 - AND downvotes > 0; -