mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 16:35:57 +00:00
19 lines
534 B
JavaScript
19 lines
534 B
JavaScript
|
exports.up = function (knex) {
|
||
|
// update monitor.push_token to 32 length
|
||
|
return knex.schema.alterTable("monitor", function (table) {
|
||
|
table.string("zookeeper_host", 255);
|
||
|
table
|
||
|
.integer("zookeeper_timeout")
|
||
|
.unsigned()
|
||
|
.notNullable()
|
||
|
.defaultTo(5000);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = function (knex) {
|
||
|
return knex.schema.alterTable("monitor", function (table) {
|
||
|
table.dropColumn("zookeeper_host");
|
||
|
table.dropColumn("zookeeper_timeout");
|
||
|
});
|
||
|
};
|