Skip to content

Commit

Permalink
Change the enterprise.response column from TEXT to LONGTEXT to handle…
Browse files Browse the repository at this point in the history
… larger reports.
  • Loading branch information
mark-unwin committed Feb 2, 2024
1 parent ef5f97a commit 5dddaf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/db_upgrades/db_5.1.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
$output .= str_replace("\n", " ", (string)$db->getLastQuery()) . "\n\n";
log_message('info', (string)$db->getLastQuery());

$sql = "ALTER TABLE `enterprise` CHANGE `response` `response` LONGTEXT NOT NULL DEFAULT ''";
$db->query($sql);
$output .= str_replace("\n", " ", (string)$db->getLastQuery()) . "\n\n";
log_message('info', (string)$db->getLastQuery());

// set our versions
$sql = "UPDATE `configuration` SET `value` = '20240104' WHERE `name` = 'internal_version'";
$db->query($sql);
Expand Down

0 comments on commit 5dddaf0

Please sign in to comment.