Skip to content

Commit

Permalink
Add forecasted columns to grants table (#3269)
Browse files Browse the repository at this point in the history
* Add forecasted columns to grants table

* wip

* remove estimated_open_date

---------

Co-authored-by: Laurie Reynolds <[email protected]>
  • Loading branch information
masimons and lsr-explore authored Oct 16, 2024
1 parent 5f2dbd8 commit ff63392
Showing 1 changed file with 27 additions and 0 deletions.
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');
});
};

0 comments on commit ff63392

Please sign in to comment.