mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-22 22:13:20 +02:00
b8858f4605
Co-authored-by: Frank Elsinga <frank@elsinga.de>
27 lines
938 B
JavaScript
27 lines
938 B
JavaScript
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("stat_daily", function (table) {
|
|
table.text("extras").defaultTo(null).comment("Extra statistics during this time period");
|
|
})
|
|
.alterTable("stat_minutely", function (table) {
|
|
table.text("extras").defaultTo(null).comment("Extra statistics during this time period");
|
|
})
|
|
.alterTable("stat_hourly", function (table) {
|
|
table.text("extras").defaultTo(null).comment("Extra statistics during this time period");
|
|
});
|
|
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema
|
|
.alterTable("stat_daily", function (table) {
|
|
table.dropColumn("extras");
|
|
})
|
|
.alterTable("stat_minutely", function (table) {
|
|
table.dropColumn("extras");
|
|
})
|
|
.alterTable("stat_hourly", function (table) {
|
|
table.dropColumn("extras");
|
|
});
|
|
};
|