exec($sql); } catch (PDOException $e) { echo "Warning: " . $e->getMessage() . PHP_EOL; } } echo "Migration finished." . PHP_EOL;