From 183c01b4a9a89860725c862cfb60c2b67315c09a Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:31:03 +0300 Subject: [PATCH] change field to type 'TEXT' (no migration) (#120) Resolves: https://github.com/cloud-py-api/app_api/issues/116 For some reason it was not possible to do this by migration(I tried but got `tinytext` instead of `text`), but this is not particularly important, since this is more of a change for the future. Signed-off-by: Alexander Piskun --- lib/Migration/Version1000Date202305221555.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Migration/Version1000Date202305221555.php b/lib/Migration/Version1000Date202305221555.php index 52485e15..b0b23f83 100644 --- a/lib/Migration/Version1000Date202305221555.php +++ b/lib/Migration/Version1000Date202305221555.php @@ -37,7 +37,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt 'notnull' => true, 'length' => 64 ]); - $table->addColumn('configvalue', Types::STRING, [ + $table->addColumn('configvalue', Types::TEXT, [ 'notnull' => false, ]); $table->addColumn('sensitive', Types::SMALLINT, [ @@ -167,7 +167,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt 'notnull' => true, 'length' => 64, ]); - $table->addColumn('configvalue', Types::STRING, [ + $table->addColumn('configvalue', Types::TEXT, [ 'notnull' => false, ]);