-
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.
- Loading branch information
Showing
29 changed files
with
716 additions
and
1,010 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
15 changes: 15 additions & 0 deletions
15
...chema/20240206173201_update_shipment_address_update_table_sit_and_distance_columns.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- Adds new columns to shipment address update table | ||
ALTER TABLE shipment_address_updates | ||
ADD COLUMN sit_original_address_id uuid DEFAULT NULL, | ||
ADD COLUMN old_sit_distance_between INTEGER DEFAULT NULL, | ||
ADD COLUMN new_sit_distance_between INTEGER DEFAULT NULL; | ||
|
||
-- Add foreign key constraint | ||
ALTER TABLE shipment_address_updates | ||
ADD CONSTRAINT fk_sit_original_address | ||
FOREIGN KEY (sit_original_address_id) REFERENCES addresses(id); | ||
|
||
-- Comments on new columns | ||
COMMENT on COLUMN shipment_address_updates.sit_original_address_id IS 'SIT address at the original time of SIT approval'; | ||
COMMENT on COLUMN shipment_address_updates.old_sit_distance_between IS 'Distance between original SIT address and previous shipment destination address'; | ||
COMMENT on COLUMN shipment_address_updates.new_sit_distance_between IS 'Distance between original SIT address and new shipment destination address'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.