-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix export url generation for sandbox accounts (#659)
* fix: fix export url generation for sandbox accounts * fix: add script to update bad db data
- Loading branch information
1 parent
054b3c1
commit b353f2f
Showing
2 changed files
with
20 additions
and
0 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
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,17 @@ | ||
rollback; | ||
begin; | ||
|
||
-- These values should be swapped after running the script | ||
-- netsuite=> select count(export_url) from expense_groups where export_url like '%_sb%'; | ||
-- count | ||
-- ------- | ||
-- 240 | ||
-- (1 row) | ||
|
||
-- netsuite=> select count(export_url) from expense_groups where export_url like '%-sb%'; | ||
-- count | ||
-- ------- | ||
-- 0 | ||
-- (1 row) | ||
|
||
update expense_groups set export_url = replace(export_url, '_sb', '-sb'); |