-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from PagerDuty/feat/service-dependency-sync
feat: service dependency sync
- Loading branch information
Showing
7 changed files
with
827 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @param {import('knex').Knex} knex | ||
*/ | ||
exports.up = async function up(knex) { | ||
await knex.schema.createTable('pagerduty_settings', table => { | ||
table | ||
.string('id') | ||
.unique() | ||
.notNullable(); | ||
table | ||
.string('value'); | ||
table | ||
.dateTime('updatedAt') | ||
.defaultTo(knex.fn.now()); | ||
table.index(['id'], 'settings_id_idx'); | ||
}); | ||
}; | ||
|
||
/** | ||
* @param {import('knex').Knex} knex | ||
*/ | ||
exports.down = async function down(knex) { | ||
await knex.schema.alterTable('pagerduty_settings', table => { | ||
table.dropIndex([], 'settings_id_idx'); | ||
}); | ||
await knex.schema.dropTable('pagerduty_settings'); | ||
}; |
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
Oops, something went wrong.