From f7f5b49082106cf3f744ffda98c9c114fc049bf9 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Mon, 3 Apr 2023 11:36:44 +0200 Subject: [PATCH] fix bug: wrong class call and wrong use-call --- migration/data/Version20230403083243.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/migration/data/Version20230403083243.php b/migration/data/Version20230403083243.php index cbcd852..e02f67b 100644 --- a/migration/data/Version20230403083243.php +++ b/migration/data/Version20230403083243.php @@ -5,7 +5,7 @@ declare(strict_types=1); namespace D3\CategoryLongtext\Migrations; use Doctrine\DBAL\DBALException; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\SchemaException; use Doctrine\DBAL\Types\TextType; @@ -36,19 +36,19 @@ final class Version20230403083243 extends AbstractMigration $table = $schema->getTable('oxcategories'); $table->hasColumn('D3LONGDESC2') ?: - $table->addColumn('D3LONGDESC2', (new TextType::class)->getName()) + $table->addColumn('D3LONGDESC2', (new TextType())->getName()) ->setNotnull(true); $table->hasColumn('D3LONGDESC2_1') ?: - $table->addColumn('D3LONGDESC2_1', (new TextType::class)->getName()) + $table->addColumn('D3LONGDESC2_1', (new TextType())->getName()) ->setNotnull(true); $table->hasColumn('D3LONGDESC2_2') ?: - $table->addColumn('D3LONGDESC2_2', (new TextType::class)->getName()) + $table->addColumn('D3LONGDESC2_2', (new TextType())->getName()) ->setNotnull(true); $table->hasColumn('D3LONGDESC2_3') ?: - $table->addColumn('D3LONGDESC2_3', (new TextType::class)->getName()) + $table->addColumn('D3LONGDESC2_3', (new TextType())->getName()) ->setNotnull(true); $this->postProcesses();