mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-08-07 10:14:59 +00:00
fix: widen stat_daily up/down columns from SMALLINT to unsigned INTEGER (#7618)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
exports.up = function (knex) {
|
||||
return knex.schema.alterTable("stat_daily", function (table) {
|
||||
table.integer("up").unsigned().notNullable().alter();
|
||||
table.integer("down").unsigned().notNullable().alter();
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = function (knex) {
|
||||
return knex.schema.alterTable("stat_daily", function (table) {
|
||||
table.smallint("up").notNullable().alter();
|
||||
table.smallint("down").notNullable().alter();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user