2004-03-04 23:13:10 +08:00
|
|
|
--
|
2004-03-05 18:20:42 +08:00
|
|
|
-- This updates a 1.18.1 database to 1.19.0
|
2004-03-04 23:13:10 +08:00
|
|
|
--
|
|
|
|
-- Make changes to Zones table
|
|
|
|
--
|
|
|
|
alter table Frames add column Type enum('Normal','Bulk','Alarm') NOT NULL default 'Normal' after FrameId;
|
|
|
|
update Frames set Type = 'Alarm' where AlarmFrame = 1;
|
|
|
|
alter table Frames drop column AlarmFrame;
|
|
|
|
--
|
|
|
|
-- These are optional, but we might as well
|
|
|
|
--
|
|
|
|
optimize table Frames;
|
|
|
|
optimize table Events;
|
|
|
|
optimize table Filters;
|
|
|
|
optimize table Zones;
|
|
|
|
optimize table Monitors;
|
|
|
|
optimize table Stats;
|