connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); $table = $schema->getTable('oxcategories'); if (!$table->hasColumn('D3LONGDESC2')){ $table->addColumn('D3LONGDESC2', (Type::getType('text')->getName())) ->setNotnull(true); } $table->hasColumn('D3LONGDESC2_1') ?: $table->addColumn('D3LONGDESC2_1', (Type::getType('text')->getName())) ->setNotnull(true); $table->hasColumn('D3LONGDESC2_2') ?: $table->addColumn('D3LONGDESC2_2', (Type::getType('text')->getName())) ->setNotnull(true); $table->hasColumn('D3LONGDESC2_3') ?: $table->addColumn('D3LONGDESC2_3', (Type::getType('text')->getName())) ->setNotnull(true); } public function down(Schema $schema) : void { // this down() migration is auto-generated, please modify it to your needs } }