adjust table to link awfy_score and awfy_build

This commit is contained in:
Hannes Verschore 2014-08-04 12:23:07 -07:00
Родитель affd609795
Коммит 23afac0735
1 изменённых файлов: 5 добавлений и 11 удалений

Просмотреть файл

@ -169,15 +169,12 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
CREATE TABLE `awfy_breakdown` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`run_id` int(11) DEFAULT NULL,
`mode_id` int(11) DEFAULT NULL,
`score` varchar(45) DEFAULT NULL,
`build_id` int(11) DEFAULT NULL,
`suite_test_id` int(10) DEFAULT NULL,
`score` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `run_id` (`run_id`),
KEY `mode_id` (`mode_id`),
KEY `build_id` (`build_id`),
KEY `suite_test_id` (`suite_test_id`),
KEY `run_test` (`run_id`, `suite_test_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
@ -222,14 +219,11 @@ CREATE TABLE `awfy_machine` (
CREATE TABLE `awfy_score` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`run_id` int(11) DEFAULT NULL,
`build_id` int(11) DEFAULT NULL,
`suite_version_id` int(11) DEFAULT NULL,
`mode_id` int(11) DEFAULT NULL,
`score` double DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `run_id_2` (`run_id`,`suite_version_id`,`mode_id`),
KEY `run_id` (`run_id`),
KEY `mode_id` (`mode_id`),
KEY `build_id` (`build_id`),
KEY `suite_id` (`suite_version_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;