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:
parent
386282e73b
commit
e6f105535f
16
db/knex_migrations/2025-10-14-0000-add-ip-family-fix.js
Normal file
16
db/knex_migrations/2025-10-14-0000-add-ip-family-fix.js
Normal 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();
|
||||
});
|
||||
};
|
||||
@ -313,6 +313,7 @@
|
||||
"Services": "Services",
|
||||
"Discard": "Discard",
|
||||
"Cancel": "Cancel",
|
||||
"auto-select": "Auto Select",
|
||||
"Select": "Select",
|
||||
"selectedMonitorCount": "Selected: {0}",
|
||||
"Check/Uncheck": "Check/Uncheck",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user