generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(address-service): DOMA-8491 lowercase AddressSource.source (#4444)
* feat(address-service): DOMA-8491 lowercase AddressSource.source * feat(address-service): DOMA-8491 fix address source validation
- Loading branch information
1 parent
7cb75a2
commit 19b96c3
Showing
6 changed files
with
52 additions
and
15 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
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
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
20 changes: 20 additions & 0 deletions
20
apps/address-service/migrations/20230216132102-0004_manual_lowercase_address_source.js
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,20 @@ | ||
// auto generated by kmigrator | ||
// KMIGRATOR:0004_manual_lowercase_address_source | ||
|
||
exports.up = async (knex) => { | ||
await knex.raw(` | ||
BEGIN; | ||
SET statement_timeout = '1500s'; | ||
UPDATE "AddressSource" SET source = lower(source); | ||
SET statement_timeout = '10s'; | ||
COMMIT; | ||
`) | ||
} | ||
|
||
exports.down = async (knex) => { | ||
return | ||
} |