summaryrefslogtreecommitdiffstats
path: root/upgrades/dbpatches/1.3/postgresql/patch
diff options
context:
space:
mode:
Diffstat (limited to 'upgrades/dbpatches/1.3/postgresql/patch')
-rw-r--r--upgrades/dbpatches/1.3/postgresql/patch/events.sql2
1 files changed, 1 insertions, 1 deletions
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;