From c2a660ead38d278022ba00386887190ba0739544 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Thu, 17 Sep 2020 14:23:37 +1000 Subject: [PATCH] FIX: Fix verification_status migration for uploads * Missing ELSE 1 even though there is a default on the column. --- db/migrate/20200910051633_change_uploads_verified_to_integer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20200910051633_change_uploads_verified_to_integer.rb b/db/migrate/20200910051633_change_uploads_verified_to_integer.rb index 67ef689093a..785817b966f 100644 --- a/db/migrate/20200910051633_change_uploads_verified_to_integer.rb +++ b/db/migrate/20200910051633_change_uploads_verified_to_integer.rb @@ -10,6 +10,7 @@ class ChangeUploadsVerifiedToInteger < ActiveRecord::Migration[6.0] UPDATE uploads SET verification_status = CASE WHEN verified THEN 2 WHEN NOT verified THEN 3 + ELSE 1 END SQL )