schema->getConnection(); foreach (self::GROUPS as [$id, $old, $new]) { $connection->update( 'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?', [$new, $id] ); } } /** * Reverse the migration */ public function down() { $connection = $this->schema->getConnection(); foreach (self::GROUPS as [$id, $old, $new]) { $connection->update( 'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?', [$old, $id] ); } } }