forked from jpwhite4/xdmod-ondemand
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add database migration for using
NA
for unknown locations. (#55)
- Loading branch information
1 parent
68ddd60
commit 8a8b270
Showing
2 changed files
with
11 additions
and
2 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
8 changes: 8 additions & 0 deletions
8
...iguration/etl/etl_sql.d/ood/ondemand-migration-10_5_0-11_0_0-replace-unknown-location.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,8 @@ | ||
UPDATE modw_ondemand.location | ||
SET | ||
city = 'NA', | ||
state = 'NA', | ||
country = 'NA' | ||
WHERE city = 'unknown' | ||
AND state = 'unknown' | ||
AND country = 'unknown' |