From a826d54f577fb32c7c4da81e3b87acd89b8a70cf Mon Sep 17 00:00:00 2001 From: MaxBuhe01 Date: Wed, 13 Nov 2024 23:24:34 +0100 Subject: [PATCH] [Fixed] column length --- migration/data/Version20241023154223.php | 1 + migration/data/Version20241028172608.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/migration/data/Version20241023154223.php b/migration/data/Version20241023154223.php index 3f13b49..18af8f6 100644 --- a/migration/data/Version20241023154223.php +++ b/migration/data/Version20241023154223.php @@ -41,6 +41,7 @@ final class Version20241023154223 extends AbstractMigration // Beschreibung if (!$table->hasColumn('D3DESCRIPTION')) { $table->addColumn('D3DESCRIPTION', (new TextType())->getName()) + ->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT) ->setNotnull(true); } } diff --git a/migration/data/Version20241028172608.php b/migration/data/Version20241028172608.php index 91f658c..11b7b93 100644 --- a/migration/data/Version20241028172608.php +++ b/migration/data/Version20241028172608.php @@ -41,18 +41,21 @@ final class Version20241028172608 extends AbstractMigration // lang 1 if (!$table->hasColumn('D3DESCRIPTION_1')) { $table->addColumn('D3DESCRIPTION_1', (new TextType())->getName()) + ->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT) ->setNotnull(true); } // lang 2 if (!$table->hasColumn('D3DESCRIPTION_2')) { $table->addColumn('D3DESCRIPTION_2', (new TextType())->getName()) + ->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT) ->setNotnull(true); } // lang 3 if (!$table->hasColumn('D3DESCRIPTION_3')) { $table->addColumn('D3DESCRIPTION_3', (new TextType())->getName()) + ->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT) ->setNotnull(true); } }