From b6d1ef8c9ab632213d0a3e916b24bca0b10a00c9 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 3 Sep 2026 10:24:49 -0500 Subject: [PATCH] Use Longtext ratehr than varchar Queries get really big --- CHANGELOG.md | 3 ++ .../Version6802Date20260903100000.php | 33 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 lib/Migration/Version6802Date20260903100000.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 1adfe375..9cff2932 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ - Persist aggregation and disaggregation chart functions and show their secondary axis automatically. - Mark the Analysis menu when aggregation or disaggregation functions are active. +### Changed +- Store report option data as longtext instead of varchar(1000). + ### Fixed - Match navigation and navigation-menu icon colors to their labels in light and dark themes. - Export panoramas using a consistent light theme in PDFs. diff --git a/lib/Migration/Version6802Date20260903100000.php b/lib/Migration/Version6802Date20260903100000.php new file mode 100644 index 00000000..cc13763a --- /dev/null +++ b/lib/Migration/Version6802Date20260903100000.php @@ -0,0 +1,33 @@ +getTable('analytics_report'); + foreach (['chartoptions', 'dataoptions', 'filteroptions', 'tableoptions'] as $column) { + $table->changeColumn($column, [ + 'type' => 'text', + 'notnull' => false, + ]); + } + + return $schema; + } +} \ No newline at end of file