Skip to content

Commit

Permalink
Add sql script to update is_oconus on addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
TevinAdams committed Oct 4, 2024
1 parent 16dd7a8 commit 15a943a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions migrations/app/migrations_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1000,3 +1000,4 @@
20240917132411_update_provides_ppm_closeout_transportation_offices.up.sql
20240917165710_update_duty_locations_provides_services_counseling.up.sql
20241001174400_add_is_oconus_column.up.sql
20241004203140_update_addresses_is_oconus.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DO $$
BEGIN
UPDATE addresses
SET is_oconus = CASE
WHEN country IN ('US', 'United States') THEN false
ELSE true
END;
END $$;

0 comments on commit 15a943a

Please sign in to comment.