getTable('language'); $languageTable ->getColumn('parent_id') ->setType(Type::getType(Type::INTEGER)) ->setNotnull(false); $languageTable->addForeignKeyConstraint('language', ['parent_id'], ['id'], [], 'language_parent'); } /** * @param Schema $schema * @throws \Doctrine\DBAL\DBALException * @throws \Doctrine\DBAL\Schema\SchemaException */ public function down(Schema $schema) { $languageTable = $schema->getTable('language'); $languageTable->removeForeignKey('language_parent'); $languageTable ->getColumn('parent_id') ->setType(Type::getType(Type::BOOLEAN)) ->setNotnull(false); } }