Fix db coloum type for manual monitor (#5921)

This commit is contained in:
Maksim 2025-06-15 11:43:09 +03:00 committed by GitHub
parent 55817061c0
commit 3b6a78bd80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,13 @@
// Fix: Change manual_status column type to smallint
exports.up = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
table.smallint("manual_status").alter();
});
};
exports.down = function (knex) {
return knex.schema.alterTable("monitor", function (table) {
table.string("manual_status").alter();
});
};