|
|
@ -635,7 +635,6 @@ CREATE TABLE `event_fights` (
|
|
|
|
`host` int(10) unsigned NOT NULL,
|
|
|
|
`host` int(10) unsigned NOT NULL,
|
|
|
|
`winner` int(10) unsigned NOT NULL,
|
|
|
|
`winner` int(10) unsigned NOT NULL,
|
|
|
|
PRIMARY KEY (`event_id`,`event_fight_id`),
|
|
|
|
PRIMARY KEY (`event_id`,`event_fight_id`),
|
|
|
|
UNIQUE KEY `new_index` (`event_fight_id`),
|
|
|
|
|
|
|
|
KEY `event_fights_host` (`event_id`,`host`),
|
|
|
|
KEY `event_fights_host` (`event_id`,`host`),
|
|
|
|
KEY `event_fights_winner` (`event_id`,`winner`),
|
|
|
|
KEY `event_fights_winner` (`event_id`,`winner`),
|
|
|
|
CONSTRAINT `event_fights_event_id` FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
CONSTRAINT `event_fights_event_id` FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|