need to convert NULL values before saying not null

This commit is contained in:
Isaac Connor committed 2016-09-20 17:53:35 -04:00
1 parent 19a60b01da
commit f0a9820096
1 file changed
+2
+2
View File
@@ -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;