Skip to content

Commit

Permalink
Update Elite.php
Browse files Browse the repository at this point in the history
Fix for ADD KEY.

little mysql error :S
  • Loading branch information
w1lla committed Feb 11, 2014
1 parent 90c8185 commit faf9976
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Shootmania/Elite/Elite.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
Name: Willem 'W1lla' van den Munckhof
Date: 12/11/2013
Date: 11-2-2014
Project Name: ESWC Elite Statistics
What to do:
Expand Down Expand Up @@ -107,7 +107,7 @@ function onLoad() {
`map_uid` varchar(60) NOT NULL,
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -125,7 +125,7 @@ function onLoad() {
`eliminations` int(11) NOT NULL DEFAULT '0',
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -140,7 +140,7 @@ function onLoad() {
`map_uid` varchar(60) NOT NULL,
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -159,7 +159,7 @@ function onLoad() {
`defenceWinEliminate` MEDIUMINT( 9 ) NOT NULL DEFAULT '0',
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -172,8 +172,7 @@ function onLoad() {
`nation` varchar(50) NOT NULL,
`updatedate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`),
ADD KEY(matchServerLogin)
UNIQUE KEY `login` (`login`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -197,7 +196,7 @@ function onLoad() {
`elimination_3x` mediumint(9) NOT NULL DEFAULT '0',
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand Down Expand Up @@ -230,7 +229,7 @@ function onLoad() {
`competition_id` INT(10) NOT NULL DEFAULT '1',
`show` boolean default '0',
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -250,7 +249,7 @@ function onLoad() {
`NextMap` boolean default '0',
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -267,7 +266,7 @@ function onLoad() {
`weaponname` varchar(45) DEFAULT NULL,
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand All @@ -285,7 +284,7 @@ function onLoad() {
`weaponname` varchar(45) DEFAULT NULL,
`matchServerLogin` VARCHAR(250) NOT NULL,
PRIMARY KEY (`id`),
ADD KEY(matchServerLogin)
KEY(matchServerLogin)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
$this->db->execute($q);
}
Expand Down

0 comments on commit faf9976

Please sign in to comment.