You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
713 B
22 lines
713 B
exports.up = function (knex) {
|
|
// Add new columns monitor.datadog*
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.string("datadog_site", 255);
|
|
table.string("datadog_api_key", 255);
|
|
table.string("datadog_app_key", 255);
|
|
table.string("datadog_monitor_id", 255);
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
// Drop column monitor.datadog*
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.dropColumn("datadog_site");
|
|
table.dropColumn("datadog_api_key");
|
|
table.dropColumn("datadog_app_key");
|
|
table.dropColumn("datadog_monitor_id");
|
|
});
|
|
};
|