mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Allow ServerId to be NULL, which is the case in a non-multi-server install
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user