mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
25 lines
794 B
JavaScript
25 lines
794 B
JavaScript
/*
|
|
-- 999 characters. https://stackoverflow.com/questions/46134830/maximum-length-for-cron-job
|
|
DROP TABLE maintenance_timeslot;
|
|
ALTER TABLE maintenance ADD cron TEXT;
|
|
ALTER TABLE maintenance ADD timezone VARCHAR(255);
|
|
ALTER TABLE maintenance ADD duration INTEGER;
|
|
*/
|
|
exports.up = function (knex) {
|
|
return knex.schema
|
|
.dropTableIfExists("maintenance_timeslot")
|
|
.table("maintenance", function (table) {
|
|
table.text("cron");
|
|
table.string("timezone", 255);
|
|
table.integer("duration");
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema
|
|
.table("maintenance", function (table) {
|
|
table.dropColumn("cron");
|
|
table.dropColumn("timezone");
|
|
table.dropColumn("duration");
|
|
});
|
|
};
|