exec(' CREATE TABLE IF NOT EXISTS match_teams ( match_id INT NOT NULL, team_id INT NOT NULL, PRIMARY KEY (match_id, team_id), FOREIGN KEY (match_id) REFERENCES matches(id) ON DELETE CASCADE, FOREIGN KEY (team_id) REFERENCES teams(id) ON DELETE CASCADE ); '); echo "Migration 010 successful: Created match_teams table." . PHP_EOL; } catch (PDOException $e) { echo "Migration 010 failed: " . $e->getMessage() . PHP_EOL; } } migrate_010_create_match_teams_table();