-
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.
Browse files
Browse the repository at this point in the history
* Added migration and schema for QualityPerformanceImpactType * Fix comment name * Added form element to readonly, updated unit tests * Added server test and postmand collection * Renamed QualityPerformanceImpactType to YesNoOtherType
- Loading branch information
1 parent
009ecb5
commit 4454a5a
Showing
27 changed files
with
303 additions
and
66 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
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 |
---|---|---|
@@ -0,0 +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 | ||
); |
Oops, something went wrong.