fix(DB): Update comment to state why we still use the max 4k limit

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/38556/head
Joas Schilling 2023-10-04 10:29:41 +07:00
parent ccb01b19a0
commit 570159e610
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 3 additions and 1 deletions

@ -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) {