structure BDD

This commit is contained in:
gnieark 2015-11-29 08:26:19 +01:00
parent dc0bf3a5de
commit 13b80dd983

View File

@ -3,7 +3,8 @@ CREATE TABLE IF NOT EXISTS `arena_history` (
`player1_id` int(11) NOT NULL, `player1_id` int(11) NOT NULL,
`player2_id` int(11) NOT NULL, `player2_id` int(11) NOT NULL,
`player1_winsCount` int(11) NOT NULL, `player1_winsCount` int(11) NOT NULL,
`player2_winsCount` int(11) NOT NULL `player2_winsCount` int(11) NOT NULL,
`nulCount` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `arena_history` ALTER TABLE `arena_history`
ADD PRIMARY KEY (`game`,`player1_id`,`player2_id`); ADD PRIMARY KEY (`game`,`player1_id`,`player2_id`);