From e630847e21fe20ed699b18cc44936bc1050a730c Mon Sep 17 00:00:00 2001 From: Zmegolaz Date: Thu, 20 Mar 2014 20:13:08 +0100 Subject: [PATCH] Version 1.6 changes --- CHANGELOG | 4 ++++ frogesport.sql | 1 + upgrades/1.5_to_1.6.sql | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 upgrades/1.5_to_1.6.sql diff --git a/CHANGELOG b/CHANGELOG index 6c9a320..b9dba1a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +Version 1.6 - 2014-03-17 + NOTE: This version uses a new database structure, make sure to update! An SQL file to use when updating is provided. Apply database updates before rehashing if update is done on a live bot. + Features + * KPM is now displayed when an answer was correct, and top KPM is saved in the database. Version 1.5 - 2014-01-03 NOTE: This version uses a new database structure, make sure to update! An SQL file to use when updating is provided. Apply database updates before rehashing if update is done on a live bot. Changes diff --git a/frogesport.sql b/frogesport.sql index 4994e24..2b38db1 100644 --- a/frogesport.sql +++ b/frogesport.sql @@ -168,6 +168,7 @@ CREATE TABLE IF NOT EXISTS `users` ( `user_lastactive` int(16) NOT NULL, `user_customclass` varchar(256) COLLATE utf8_unicode_ci NOT NULL, `user_lastactive_chan` varchar(200) COLLATE utf8_unicode_ci NOT NULL, + `user_kpm_max` double NOT NULL, PRIMARY KEY (`uid`), KEY `user_nick` (`user_nick`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; diff --git a/upgrades/1.5_to_1.6.sql b/upgrades/1.5_to_1.6.sql new file mode 100644 index 0000000..a85ded1 --- /dev/null +++ b/upgrades/1.5_to_1.6.sql @@ -0,0 +1,3 @@ +Version 1.5 -> 1.6 + +ALTER TABLE `users` ADD `user_kpm_max` DOUBLE NOT NULL ;