exec($sql); echo "Migration successful: 'created_by' column added to 'events' table." . PHP_EOL; } catch (PDOException $e) { echo "Migration failed: " . $e->getMessage() . PHP_EOL; }