mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-06 13:12:33 +02:00
16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
exports.up = function (knex) {
|
|
// Add new column monitor.api_key
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.string("api_key", 255).notNullable();
|
|
});
|
|
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
// Drop column monitor.api_key
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.dropColumn("api_key");
|
|
});
|
|
};
|