wadeira / ckSurf

10 stars 10 forks source link

SQL Fix #5

Closed sneak-it closed 7 years ago

sneak-it commented 7 years ago

Since the github app isn't really working for me and I'm not 100% sure this is correct, but:

sql.sp, line 146 should be: char sql_createStageRecordsTable[] = "CREATE TABLE IF NOT EXISTS `ck_stages` (`id` int(11) NOT NULL AUTO_INCREMENT, `steamid` varchar(45) NOT NULL, `map` varchar(45) NOT NULL, `stage` int(11) NOT NULL, `runtime` float NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`)) AUTO_INCREMENT=1;";

This is to ensure that the plugin doesn't keep trying to create the table that already exists.