From cf8e0bc06262b5d33ee9743299c016d3c1173255 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 Oct 2023 10:29:41 +0200 Subject: [PATCH] fix(DB): Update comment to state why we still use the max 4k limit Signed-off-by: Joas Schilling --- lib/private/DB/Migrator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php index ad964967f40b3..1d960e72dc52f 100644 --- a/lib/private/DB/Migrator.php +++ b/lib/private/DB/Migrator.php @@ -101,7 +101,9 @@ public function createSchema() { * @return SchemaDiff */ protected function getDiff(Schema $targetSchema, Connection $connection) { - // adjust varchar columns with a length higher than getVarcharMaxLength to clob + // Adjust STRING columns with a length higher than 4000 to TEXT (clob) + // for consistency between the supported databases and + // old vs. new installations. foreach ($targetSchema->getTables() as $table) { foreach ($table->getColumns() as $column) { if ($column->getType() instanceof StringType) {