-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13739 from transcom/B-20441-INT
B 20441 int
- Loading branch information
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
24 changes: 18 additions & 6 deletions
24
migrations/app/schema/20240822180409_adding_locked_price_cents_service_param.up.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,14 +1,26 @@ | ||
INSERT INTO service_item_param_keys | ||
(id,key,description,type,origin,created_at,updated_at) | ||
VALUES | ||
('7ec5cf87-a446-4dd6-89d3-50bbc0d2c206','LockedPriceCents', 'Locked price when move was made available to prime', 'INTEGER', 'SYSTEM', now(), now()); | ||
SELECT '7ec5cf87-a446-4dd6-89d3-50bbc0d2c206','LockedPriceCents', 'Locked price when move was made available to prime', 'INTEGER', 'SYSTEM', now(), now() | ||
WHERE NOT EXISTS | ||
(SELECT 1 | ||
FROM service_item_param_keys s | ||
WHERE s.id = '7ec5cf87-a446-4dd6-89d3-50bbc0d2c206' | ||
); | ||
|
||
INSERT INTO service_params | ||
(id,service_id,service_item_param_key_id,created_at,updated_at,is_optional) | ||
VALUES | ||
('22056106-bbde-4ae7-b5bd-e7d2f103ab7d',(SELECT id FROM re_services WHERE code='MS'),(SELECT id FROM service_item_param_keys where key='LockedPriceCents'), now(), now(), 'false'); | ||
SELECT '22056106-bbde-4ae7-b5bd-e7d2f103ab7d',(SELECT id FROM re_services WHERE code='MS'),(SELECT id FROM service_item_param_keys where key='LockedPriceCents'), now(), now(), 'false' | ||
WHERE NOT EXISTS | ||
( SELECT 1 | ||
FROM service_params s | ||
WHERE s.id = '22056106-bbde-4ae7-b5bd-e7d2f103ab7d' | ||
); | ||
|
||
INSERT INTO service_params | ||
(id,service_id,service_item_param_key_id,created_at,updated_at,is_optional) | ||
VALUES | ||
('86f8c20c-071e-4715-b0c1-608f540b3be3',(SELECT id FROM re_services WHERE code='CS'),(SELECT id FROM service_item_param_keys where key='LockedPriceCents'), now(), now(), 'false'); | ||
SELECT '86f8c20c-071e-4715-b0c1-608f540b3be3',(SELECT id FROM re_services WHERE code='CS'),(SELECT id FROM service_item_param_keys where key='LockedPriceCents'), now(), now(), 'false' | ||
WHERE NOT EXISTS | ||
( SELECT 1 | ||
FROM service_params s | ||
WHERE s.id = '86f8c20c-071e-4715-b0c1-608f540b3be3' | ||
); |