-
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.
Merge remote-tracking branch 'origin/main' into feat/digest-trigger
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
packages/server/migrations/20240902220727_add_forecasted_columns_to_grants.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,27 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.up = function (knex) { | ||
return knex.schema.alterTable('grants', (table) => { | ||
table.date('award_date'); | ||
table.date('forecast_creation_date'); | ||
table.date('fiscal_year'); | ||
table.text('grantor_contact_name'); | ||
table.text('grantor_contact_phone_number'); | ||
}); | ||
}; | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.down = function (knex) { | ||
return knex.schema.table('grants', (table) => { | ||
table.dropColumn('award_date'); | ||
table.dropColumn('forecast_creation_date'); | ||
table.dropColumn('fiscal_year'); | ||
table.dropColumn('grantor_contact_name'); | ||
table.dropColumn('grantor_contact_phone_number'); | ||
}); | ||
}; |