Fix: Change montior.ip_family data type from boolean to string (#6187)

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Louis Lam 2025-10-14 22:44:52 +08:00 committed by GitHub
parent 386282e73b
commit e6f105535f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
exports.up = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
// Fix ip_family, change to varchar instead of boolean
// possible values are "ipv4" and "ipv6"
table.string("ip_family", 4).defaultTo(null).alter();
});
};
exports.down = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
// Rollback to boolean
table.boolean("ip_family").defaultTo(null).alter();
});
};

View File

@ -313,6 +313,7 @@
"Services": "Services",
"Discard": "Discard",
"Cancel": "Cancel",
"auto-select": "Auto Select",
"Select": "Select",
"selectedMonitorCount": "Selected: {0}",
"Check/Uncheck": "Check/Uncheck",