diff options
-rw-r--r-- | upgrades/dbpatches/1.3/mysql/patch/events.sql | 2 | ||||
-rw-r--r-- | upgrades/dbpatches/1.3/mysql/patch/functions.sql | 2 | ||||
-rw-r--r-- | upgrades/dbpatches/1.3/postgresql/patch/events.sql | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/upgrades/dbpatches/1.3/mysql/patch/events.sql b/upgrades/dbpatches/1.3/mysql/patch/events.sql index b664f58f..e2c885f7 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/events.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/events.sql @@ -11,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,0,triggerid,clock,value,acknowledged from alarms; +insert into events select alarmid,0,0,triggerid,clock,value,acknowledged from alarms; drop table alarms; diff --git a/upgrades/dbpatches/1.3/mysql/patch/functions.sql b/upgrades/dbpatches/1.3/mysql/patch/functions.sql index 721b8ce0..e03de6e8 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/functions.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/functions.sql @@ -1,6 +1,6 @@ CREATE TABLE functions_tmp ( functionid bigint unsigned DEFAULT '0' NOT NULL, - itemid bigint unsigned DEFAULT '0' NOT NULL, + itemid bigint unsigned DEFAULT '0' NOT NULL, triggerid bigint unsigned DEFAULT '0' NOT NULL, lastvalue varchar(255) , function varchar(12) DEFAULT '' NOT NULL, diff --git a/upgrades/dbpatches/1.3/postgresql/patch/events.sql b/upgrades/dbpatches/1.3/postgresql/patch/events.sql index 71ecb9f1..e9d786b8 100644 --- a/upgrades/dbpatches/1.3/postgresql/patch/events.sql +++ b/upgrades/dbpatches/1.3/postgresql/patch/events.sql @@ -10,5 +10,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 alarmid,0,triggerid,clock,value,acknowledged from alarms; drop table alarms; |