skipIf($this->legacyCheck($schema, 'Framadate\Migration\Alter_Comment_table_for_name_length'), 'Migration has been executed in an earlier database migration system'); $commentTable = $schema->getTable(Utils::table('comment')); $commentTable->changeColumn('name', ['default' => null, 'notnull' => false]); $commentTable->changeColumn('name', ['type' => Type::getType('string'), 'length' => 64, 'notnull' => true]); } /** * @param Schema $schema * @throws \Doctrine\DBAL\Schema\SchemaException * @throws \Doctrine\DBAL\DBALException */ public function down(Schema $schema) { $commentTable = $schema->getTable(Utils::table('comment')); $commentTable->changeColumn('name', ['type' => Type::getType('string')]); } }