fix: widen stat_daily up/down columns from SMALLINT to unsigned INTEGER (#7618)

This commit is contained in:
Kushie authored and GitHub committed 2026-07-24 06:42:37 +08:00
1 parent d3463870af
commit 37009a28f2
1 file changed
+13
@@ -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();
});
};