-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
MAIN B-21429 and B-21431
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- Set temp timeout due to potentially large modification | ||
-- Time is 5 minutes in milliseconds | ||
SET statement_timeout = 300000; | ||
SET lock_timeout = 300000; | ||
SET idle_in_transaction_session_timeout = 300000; | ||
|
||
-- Populate the new market_code column for shipments | ||
-- since we do not support OCONUS moves yet, these should all be "d" | ||
UPDATE mto_shipments | ||
SET market_code = 'd' | ||
WHERE market_code IS NULL; | ||
|
||
-- Add a NOT NULL constraint to the market_code column after we populate with data | ||
ALTER TABLE mto_shipments | ||
ALTER COLUMN market_code SET NOT NULL; | ||
|
||
-- fixing typo from previous migration | ||
COMMENT ON COLUMN mto_shipments.market_code IS 'Market code indicator for the shipment. i for international and d for domestic.'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.