-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NOREF] Revert migration V127 whitespace changes (#907)
Revert migrations/V127__Update_Quality_Performance_Impacts_Payment.sql to a specific previous version
- Loading branch information
1 parent
adc0831
commit c3e685d
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
36 changes: 18 additions & 18 deletions
36
migrations/V127__Update_Quality_Performance_Impacts_Payment.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
); |