From c3e685d2db9cec1943d7c30427a13fc6934e7f76 Mon Sep 17 00:00:00 2001 From: Tom Brooks <100007843+OddTomBrooks@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:20:30 -0500 Subject: [PATCH] [NOREF] Revert migration V127 whitespace changes (#907) Revert migrations/V127__Update_Quality_Performance_Impacts_Payment.sql to a specific previous version --- ...te_Quality_Performance_Impacts_Payment.sql | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/migrations/V127__Update_Quality_Performance_Impacts_Payment.sql b/migrations/V127__Update_Quality_Performance_Impacts_Payment.sql index aa09c97da9..335d12aa0f 100644 --- a/migrations/V127__Update_Quality_Performance_Impacts_Payment.sql +++ b/migrations/V127__Update_Quality_Performance_Impacts_Payment.sql @@ -1,18 +1,18 @@ -CREATE TYPE YES_NO_OTHER_TYPE AS ENUM ( - 'YES', - 'NO', - 'OTHER' - ); - --- Add quality_performance_impacts_payment_other to table -ALTER TABLE plan_ops_eval_and_learning - ADD COLUMN quality_performance_impacts_payment_other zero_string; - --- Alter the quality_performance_impacts_payment column to use new YES_NO_OTHER_TYPE enum instead of BOOL -ALTER TABLE plan_ops_eval_and_learning - ALTER COLUMN quality_performance_impacts_payment TYPE YES_NO_OTHER_TYPE USING ( - CASE quality_performance_impacts_payment - WHEN TRUE THEN 'YES'::YES_NO_OTHER_TYPE - WHEN FALSE THEN 'NO'::YES_NO_OTHER_TYPE - END - ); +CREATE TYPE YES_NO_OTHER_TYPE AS ENUM ( + 'YES', + 'NO', + 'OTHER' +); + +-- Add quality_performance_impacts_payment_other to table +ALTER TABLE plan_ops_eval_and_learning + ADD COLUMN quality_performance_impacts_payment_other zero_string; + +-- Alter the quality_performance_impacts_payment column to use new YES_NO_OTHER_TYPE enum instead of BOOL +ALTER TABLE plan_ops_eval_and_learning + ALTER COLUMN quality_performance_impacts_payment TYPE YES_NO_OTHER_TYPE USING ( + CASE quality_performance_impacts_payment + WHEN TRUE THEN 'YES'::YES_NO_OTHER_TYPE + WHEN FALSE THEN 'NO'::YES_NO_OTHER_TYPE + END + );