From 47e84b274c49beebc2f96332cd57f3a836855626 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 30 Oct 2024 10:10:29 +0100 Subject: [PATCH] Remove controversial migration, let admins run in manually --- .../down.sql | 17 ----------------- .../up.sql | 17 ----------------- 2 files changed, 34 deletions(-) delete mode 100644 migrations/2024-07-01-014711_exponential_controversy/down.sql delete mode 100644 migrations/2024-07-01-014711_exponential_controversy/up.sql 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; -