Skip to content

Commit

Permalink
Merge branch 'main' into B-18181
Browse files Browse the repository at this point in the history
  • Loading branch information
loganwc authored Feb 7, 2024
2 parents cd59ba8 + e4dc0af commit f7a2117
Show file tree
Hide file tree
Showing 29 changed files with 716 additions and 1,010 deletions.
1 change: 1 addition & 0 deletions migrations/app/migrations_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -892,3 +892,4 @@
20240124155759_20240124-homesafeconnect-cert.up.sql
20240129153006_20240129-homesafeconnect-cert.up.sql
20240201174442_20240201_homesafe_prd_cert.up.sql
20240206173201_update_shipment_address_update_table_sit_and_distance_columns.up.sql
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';
28 changes: 28 additions & 0 deletions pkg/gen/ghcapi/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 93 additions & 0 deletions pkg/gen/ghcmessages/shipment_address_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions pkg/gen/internalapi/configure_mymove.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ func configureAPI(api *internaloperations.MymoveAPI) http.Handler {
return middleware.NotImplemented("operation ppm.ShowPPMEstimate has not yet been implemented")
})
}
if api.PpmShowPPMIncentiveHandler == nil {
api.PpmShowPPMIncentiveHandler = ppm.ShowPPMIncentiveHandlerFunc(func(params ppm.ShowPPMIncentiveParams) middleware.Responder {
return middleware.NotImplemented("operation ppm.ShowPPMIncentive has not yet been implemented")
})
}
if api.PpmShowPPMSitEstimateHandler == nil {
api.PpmShowPPMSitEstimateHandler = ppm.ShowPPMSitEstimateHandlerFunc(func(params ppm.ShowPPMSitEstimateParams) middleware.Responder {
return middleware.NotImplemented("operation ppm.ShowPPMSitEstimate has not yet been implemented")
Expand Down
Loading

0 comments on commit f7a2117

Please sign in to comment.