2016-09-16 21:00:34 +08:00
|
|
|
--
|
|
|
|
-- This updates a 1.30.6 database to 1.30.7
|
|
|
|
--
|
|
|
|
-- Changing StorageId to be NOT NULL and default 0
|
|
|
|
--
|
|
|
|
|
2016-09-21 05:53:35 +08:00
|
|
|
UPDATE Monitors SET StorageId = 0 WHERE StorageId IS NULL;
|
2016-09-16 21:00:34 +08:00
|
|
|
ALTER TABLE Monitors MODIFY `StorageId` smallint(5) unsigned NOT NULL default 0;
|
2016-09-21 05:53:35 +08:00
|
|
|
UPDATE Events SET StorageId = 0 WHERE StorageId IS NULL;
|
2016-09-16 21:00:34 +08:00
|
|
|
ALTER TABLE Events MODIFY `StorageId` smallint(5) unsigned NOT NULL default 0;
|