mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-20 13:34:23 -04:00
need to convert NULL values before saying not null
This commit is contained in:
1 parent
19a60b01da
commit
f0a9820096
1 file changed
+2
@@ -4,5 +4,7 @@
|
||||
-- Changing StorageId to be NOT NULL and default 0
|
||||
--
|
||||
|
||||
UPDATE Monitors SET StorageId = 0 WHERE StorageId IS NULL;
|
||||
ALTER TABLE Monitors MODIFY `StorageId` smallint(5) unsigned NOT NULL default 0;
|
||||
UPDATE Events SET StorageId = 0 WHERE StorageId IS NULL;
|
||||
ALTER TABLE Events MODIFY `StorageId` smallint(5) unsigned NOT NULL default 0;
|
||||
Reference in new issue
Block a user