make DiskSpace in storage table be int instead of unsigned. Event deletions can make it go negative and then the delete fails.

This commit is contained in:
Isaac Connor 2018-02-01 11:32:44 -05:00
parent 26ac1fd695
commit 73edd3221a
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ CREATE TABLE `Storage` (
`Path` varchar(64) NOT NULL default '', `Path` varchar(64) NOT NULL default '',
`Name` varchar(64) NOT NULL default '', `Name` varchar(64) NOT NULL default '',
`Type` enum('local','s3fs') NOT NULL default 'local', `Type` enum('local','s3fs') NOT NULL default 'local',
`DiskSpace` bigint unsigned default NULL, `DiskSpace` bigint default NULL,
`Scheme` enum('Deep','Medium','Shallow') NOT NULL default 'Medium', `Scheme` enum('Deep','Medium','Shallow') NOT NULL default 'Medium',
`ServerId` int(10) unsigned, `ServerId` int(10) unsigned,
PRIMARY KEY (`Id`) PRIMARY KEY (`Id`)