diff options
Diffstat (limited to 'upgrades/dbpatches/1.3/mysql/patch/events.sql')
-rw-r--r-- | upgrades/dbpatches/1.3/mysql/patch/events.sql | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/upgrades/dbpatches/1.3/mysql/patch/events.sql b/upgrades/dbpatches/1.3/mysql/patch/events.sql index 2c185638..b664f58f 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/events.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/events.sql @@ -1,7 +1,8 @@ CREATE TABLE events ( eventid bigint unsigned DEFAULT '0' NOT NULL, source integer DEFAULT '0' NOT NULL, - sourceid bigint unsigned DEFAULT '0' NOT NULL, + object integer DEFAULT '0' NOT NULL, + objectid bigint unsigned DEFAULT '0' NOT NULL, clock integer DEFAULT '0' NOT NULL, value integer DEFAULT '0' NOT NULL, acknowledged integer DEFAULT '0' NOT NULL, @@ -10,5 +11,5 @@ CREATE TABLE events ( CREATE INDEX events_1 on events (triggerid,source,clock); CREATE INDEX events_2 on events (clock); -insert into events select eventid,0,triggerid,clock,value,acknowledged from alarms; +insert into events select eventid,0,0,triggerid,clock,value,acknowledged from alarms; drop table alarms; |