fix bug: wrong class call and wrong use-call

This commit is contained in:
MaxBUhe 2023-04-03 11:36:44 +02:00
bovenliggende 4e66277047
commit f7f5b49082
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen

Bestand weergeven

@ -5,7 +5,7 @@ declare(strict_types=1);
namespace D3\CategoryLongtext\Migrations; namespace D3\CategoryLongtext\Migrations;
use Doctrine\DBAL\DBALException; use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\SchemaException; use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Types\TextType; use Doctrine\DBAL\Types\TextType;
@ -36,19 +36,19 @@ final class Version20230403083243 extends AbstractMigration
$table = $schema->getTable('oxcategories'); $table = $schema->getTable('oxcategories');
$table->hasColumn('D3LONGDESC2') ?: $table->hasColumn('D3LONGDESC2') ?:
$table->addColumn('D3LONGDESC2', (new TextType::class)->getName()) $table->addColumn('D3LONGDESC2', (new TextType())->getName())
->setNotnull(true); ->setNotnull(true);
$table->hasColumn('D3LONGDESC2_1') ?: $table->hasColumn('D3LONGDESC2_1') ?:
$table->addColumn('D3LONGDESC2_1', (new TextType::class)->getName()) $table->addColumn('D3LONGDESC2_1', (new TextType())->getName())
->setNotnull(true); ->setNotnull(true);
$table->hasColumn('D3LONGDESC2_2') ?: $table->hasColumn('D3LONGDESC2_2') ?:
$table->addColumn('D3LONGDESC2_2', (new TextType::class)->getName()) $table->addColumn('D3LONGDESC2_2', (new TextType())->getName())
->setNotnull(true); ->setNotnull(true);
$table->hasColumn('D3LONGDESC2_3') ?: $table->hasColumn('D3LONGDESC2_3') ?:
$table->addColumn('D3LONGDESC2_3', (new TextType::class)->getName()) $table->addColumn('D3LONGDESC2_3', (new TextType())->getName())
->setNotnull(true); ->setNotnull(true);
$this->postProcesses(); $this->postProcesses();