aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-10-04 10:29:41 +0200
committerJoas Schilling <coding@schilljs.com>2023-10-06 15:29:27 +0200
commit570159e6101cfa09d4035da2e2811bc7ecd71dd5 (patch)
tree205d8d1b3ad1748bcdfa53e220c1c961604071f6 /lib
parentccb01b19a0196b1cfd02fd004deebe63915287ac (diff)
downloadnextcloud-server-570159e6101cfa09d4035da2e2811bc7ecd71dd5.tar.gz
nextcloud-server-570159e6101cfa09d4035da2e2811bc7ecd71dd5.zip
fix(DB): Update comment to state why we still use the max 4k limit
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/Migrator.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php
index ad964967f40..1d960e72dc5 100644
--- a/lib/private/DB/Migrator.php
+++ b/lib/private/DB/Migrator.php
@@ -101,7 +101,9 @@ class Migrator {
* @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) {