2005-10-17 04:57:29 +08:00
|
|
|
--
|
|
|
|
-- This updates a 1.21.2 database to 1.21.3
|
|
|
|
--
|
2005-10-17 18:12:53 +08:00
|
|
|
alter table Monitors add column WebColour varchar(32) not null default 'red';
|
2005-10-17 04:57:29 +08:00
|
|
|
update Monitors set WebColour = concat( '#', hex(14*rand()),hex(15*rand()),hex(14*rand()),hex(15*rand()),hex(14*rand()),hex(15*rand()) );
|
2005-10-17 18:12:53 +08:00
|
|
|
alter table Monitors add column Sequence smallint unsigned;
|
2005-10-17 18:58:25 +08:00
|
|
|
alter table Monitors modify column Device tinytext;
|
|
|
|
update Monitors set Device = concat( "/dev/video", Device );
|
|
|
|
update Monitors set Device = NULL where Type = "Remote";
|
2005-10-20 00:52:28 +08:00
|
|
|
alter table Monitors add column DefaultScale smallint unsigned after ReturnDelay;
|
2005-10-18 05:55:02 +08:00
|
|
|
alter table Monitors modify column Type enum('Local','Remote','File') NOT NULL default 'Local';
|
2005-10-17 18:12:53 +08:00
|
|
|
alter table Events add column Height smallint(5) unsigned not null default '0' after EndTime;
|
|
|
|
alter table Events add column Width smallint(5) unsigned not null default '0' after EndTime;
|
2005-11-07 23:03:47 +08:00
|
|
|
alter table Users add column Control enum('None','View','Edit') NOT NULL default 'None' after Events;
|
|
|
|
update Users set Control = System;
|
2005-10-21 01:02:45 +08:00
|
|
|
alter table Users add column MaxBandwidth varchar(16) not null default '' after System;
|
2005-10-17 04:57:29 +08:00
|
|
|
--
|
|
|
|
-- These are optional, but we might as well do it now
|
|
|
|
--
|
|
|
|
optimize table Frames;
|
|
|
|
optimize table Events;
|
|
|
|
optimize table Filters;
|
|
|
|
optimize table Zones;
|
|
|
|
optimize table Monitors;
|
|
|
|
optimize table Stats;
|