Allow ServerId to be NULL, which is the case in a non-multi-server install

This commit is contained in:
Isaac Connor
2023-02-18 18:01:51 -05:00
parent 0cf80c2ac0
commit 25a7159393
2 changed files with 2 additions and 2 deletions

View File

@@ -691,7 +691,7 @@ CREATE INDEX `Servers_Name_idx` ON `Servers` (`Name`);
DROP TABLE IF EXISTS `Server_Stats`;
CREATE TABLE `Server_Stats` (
`Id` int(10) unsigned NOT NULL auto_increment,
`ServerId` int(10) unsigned NOT NULL,
`ServerId` int(10) unsigned,
`TimeStamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`CpuLoad` DECIMAL(5,1) default NULL,
`TotalMem` bigint unsigned default null,

View File

@@ -12,7 +12,7 @@ SET @s = (SELECT IF(
"SELECT 'Server_Stats table exists'",
"CREATE TABLE `Server_Stats` (
`Id` int(10) unsigned NOT NULL auto_increment,
`ServerId` int(10) unsigned NOT NULL,
`ServerId` int(10) unsigned,
`TimeStamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`CpuLoad` DECIMAL(5,1) default NULL,
`TotalMem` bigint unsigned default null,