mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-06-23 04:10:14 +00:00
0f61d7ee1b
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("stat_daily", function (table) {
|
|
table
|
|
.float("ping_min")
|
|
.notNullable()
|
|
.defaultTo(0)
|
|
.comment("Minimum ping during this period in milliseconds");
|
|
table
|
|
.float("ping_max")
|
|
.notNullable()
|
|
.defaultTo(0)
|
|
.comment("Maximum ping during this period in milliseconds");
|
|
})
|
|
.alterTable("stat_minutely", function (table) {
|
|
table
|
|
.float("ping_min")
|
|
.notNullable()
|
|
.defaultTo(0)
|
|
.comment("Minimum ping during this period in milliseconds");
|
|
table
|
|
.float("ping_max")
|
|
.notNullable()
|
|
.defaultTo(0)
|
|
.comment("Maximum ping during this period in milliseconds");
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema
|
|
.alterTable("stat_daily", function (table) {
|
|
table.dropColumn("ping_min");
|
|
table.dropColumn("ping_max");
|
|
})
|
|
.alterTable("stat_minutely", function (table) {
|
|
table.dropColumn("ping_min");
|
|
table.dropColumn("ping_max");
|
|
});
|
|
};
|