Skip to content

Commit

Permalink
Merge pull request #82 from PagerDuty/next
Browse files Browse the repository at this point in the history
release: 0.9.0
  • Loading branch information
t1agob authored Jul 25, 2024
2 parents 5a85c58 + 19c6375 commit 2420767
Show file tree
Hide file tree
Showing 7 changed files with 827 additions and 37 deletions.
27 changes: 27 additions & 0 deletions migrations/20240722_add_settings_table.js
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');
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@backstage/plugin-catalog-node": "^1.12.4",
"@backstage/plugin-scaffolder-node": "^0.4.8",
"@material-ui/core": "^4.12.4",
"@pagerduty/backstage-plugin-common": "0.2.0",
"@pagerduty/backstage-plugin-common": "0.2.1",
"@rjsf/core": "^5.14.3",
"@types/express": "^4.17.6",
"express": "^4.19.2",
Expand Down
Loading

0 comments on commit 2420767

Please sign in to comment.