connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); $table = $schema->getTable('oxmanufacturers'); $table->hasColumn('D3LONGDESC1') ?: $table->addColumn('D3LONGDESC1', (Type::getType('text')->getName())) ->setNotnull(true); $table->hasColumn('D3LONGDESC1_1') ?: $table->addColumn('D3LONGDESC1_1', (Type::getType('text')->getName())) ->setNotnull(true); $table->hasColumn('D3LONGDESC1_2') ?: $table->addColumn('D3LONGDESC1_2', (Type::getType('text')->getName())) ->setNotnull(true); $table->hasColumn('D3LONGDESC1_3') ?: $table->addColumn('D3LONGDESC1_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 } }