-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: rename agency status fields * feat: rename agency status fields * feat: update non-award agency status
- Loading branch information
1 parent
1607f02
commit bd0ab6f
Showing
4 changed files
with
26 additions
and
7 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
19 changes: 19 additions & 0 deletions
19
packages/server/migrations/20230111193234_update_interested_codes_names.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,19 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.up = async function (knex) { | ||
await knex('interested_codes').where({ name: 'Applied' }).update({ name: 'Pending' }); | ||
await knex('interested_codes').where({ name: 'Awarded' }).update({ name: 'Award' }); | ||
await knex('interested_codes').where({ name: 'Rejected' }).update({ name: 'Non-award' }); | ||
}; | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.down = async function (knex) { | ||
await knex('interested_codes').where({ name: 'Pending' }).update({ name: 'Applied' }); | ||
await knex('interested_codes').where({ name: 'Award' }).update({ name: 'Awarded' }); | ||
await knex('interested_codes').where({ name: 'Non-award' }).update({ name: 'Rejected' }); | ||
}; |
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