getTable('visit_locations'); foreach (self::COLUMNS as $colName) { $visitLocations->dropColumn($colName); } } /** * @throws DBALException */ public function down(Schema $schema): void { $visitLocations = $schema->getTable('visit_locations'); foreach (self::COLUMNS as $colName) { $visitLocations->addColumn($colName, Types::STRING, [ 'notnull' => false, ]); } } }