From 5731c596e13f98773d0f854cf090e0bfdf05cc54 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 27 Oct 2024 19:33:57 +0800 Subject: [PATCH] Fix #5087 --- .../2024-11-27-1927-fix-info-json-data-type.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 db/knex_migrations/2024-11-27-1927-fix-info-json-data-type.js diff --git a/db/knex_migrations/2024-11-27-1927-fix-info-json-data-type.js b/db/knex_migrations/2024-11-27-1927-fix-info-json-data-type.js new file mode 100644 index 00000000..0f3f75e5 --- /dev/null +++ b/db/knex_migrations/2024-11-27-1927-fix-info-json-data-type.js @@ -0,0 +1,13 @@ +// Update info_json column to LONGTEXT mainly for MariaDB +exports.up = function (knex) { + return knex.schema + .alterTable("monitor_tls_info", function (table) { + table.text("info_json", "longtext").alter(); + }); +}; + +exports.down = function (knex) { + return knex.schema.alterTable("monitor_tls_info", function (table) { + table.text("info_json", "text").alter(); + }); +};