Skip to content

Commit 04a0b9c

Browse files
Merge pull request #353 from mfgredo/fix-player-table-sql
Fix player table creation script
2 parents b5a62a2 + 46d572c commit 04a0b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DatabaseStats.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ name VARCHAR(255) NOT NULL,
224224
cash_earned INT NOT NULL,
225225
enemies_flashed INT NOT NULL,
226226
PRIMARY KEY (matchid, mapnumber, steamid64),
227-
FOREIGN KEY (matchid) REFERENCES matchzy_stats_matches (matchid),
228-
FOREIGN KEY (mapnumber) REFERENCES matchzy_stats_maps (mapnumber)
227+
CONSTRAINT fk_player_map_ref FOREIGN KEY (matchid, mapnumber)
228+
REFERENCES matchzy_stats_maps (matchid, mapnumber)
229229
)");
230230
}
231231

0 commit comments

Comments
 (0)