increased settings table definition varchar lengths
This commit is contained in:
parent
ac16579d7a
commit
941238663d
@ -61,8 +61,8 @@ class SettingManager implements CallbackListener {
|
|||||||
$typeSet = $defaultType . ",'" . self::TYPE_INT . "'" . ",'" . self::TYPE_REAL . "'" . ",'" . self::TYPE_BOOL . "'" . ",'" . self::TYPE_ARRAY . "'";
|
$typeSet = $defaultType . ",'" . self::TYPE_INT . "'" . ",'" . self::TYPE_REAL . "'" . ",'" . self::TYPE_BOOL . "'" . ",'" . self::TYPE_ARRAY . "'";
|
||||||
$settingTableQuery = "CREATE TABLE IF NOT EXISTS `" . self::TABLE_SETTINGS . "` (
|
$settingTableQuery = "CREATE TABLE IF NOT EXISTS `" . self::TABLE_SETTINGS . "` (
|
||||||
`index` int(11) NOT NULL AUTO_INCREMENT,
|
`index` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`class` varchar(50) NOT NULL,
|
`class` varchar(100) NOT NULL,
|
||||||
`setting` varchar(50) NOT NULL,
|
`setting` varchar(150) NOT NULL,
|
||||||
`type` set({$typeSet}) NOT NULL DEFAULT {$defaultType},
|
`type` set({$typeSet}) NOT NULL DEFAULT {$defaultType},
|
||||||
`value` varchar(100) NOT NULL,
|
`value` varchar(100) NOT NULL,
|
||||||
`default` varchar(100) NOT NULL,
|
`default` varchar(100) NOT NULL,
|
||||||
|
@ -210,10 +210,6 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener {
|
|||||||
$requiredRecords = $this->maniaControl->settingManager->getSetting($this, self::SETTING_MIN_REQUIRED_RECORDS);
|
$requiredRecords = $this->maniaControl->settingManager->getSetting($this, self::SETTING_MIN_REQUIRED_RECORDS);
|
||||||
$maxRecords = $this->maniaControl->settingManager->getSetting($this, self::SETTING_MAX_STORED_RECORDS);
|
$maxRecords = $this->maniaControl->settingManager->getSetting($this, self::SETTING_MAX_STORED_RECORDS);
|
||||||
|
|
||||||
//FIXME requiredrecords = NULL
|
|
||||||
|
|
||||||
$requiredRecords = 3;
|
|
||||||
|
|
||||||
$query = 'SELECT playerIndex, COUNT(*) AS Cnt
|
$query = 'SELECT playerIndex, COUNT(*) AS Cnt
|
||||||
FROM ' . LocalRecordsPlugin::TABLE_RECORDS . '
|
FROM ' . LocalRecordsPlugin::TABLE_RECORDS . '
|
||||||
GROUP BY PlayerIndex
|
GROUP BY PlayerIndex
|
||||||
|
Loading…
Reference in New Issue
Block a user