From decb419bee02ed3d72e246385d8066bfaf67d442 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 23 Mar 2007 09:15:34 +0000 Subject: Added actions.name (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@3914 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- upgrades/dbpatches/1.3/postgresql/patch/actions.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'upgrades/dbpatches/1.3/postgresql/patch') diff --git a/upgrades/dbpatches/1.3/postgresql/patch/actions.sql b/upgrades/dbpatches/1.3/postgresql/patch/actions.sql index daefedc4..9f45bd08 100644 --- a/upgrades/dbpatches/1.3/postgresql/patch/actions.sql +++ b/upgrades/dbpatches/1.3/postgresql/patch/actions.sql @@ -1,5 +1,6 @@ CREATE TABLE actions_tmp ( actionid bigintd DEFAULT '0' NOT NULL, + name varchar(255) DEFAULT '' NOT NULL, eventsource integer DEFAULT '0' NOT NULL, evaltype integer DEFAULT '0' NOT NULL, status integer DEFAULT '0' NOT NULL, @@ -19,7 +20,7 @@ CREATE TABLE operations ( ); CREATE INDEX operations_1 on operations (actionid); -insert into actions_tmp select actionid,source,0,status from actions; +insert into actions_tmp select actionid,actionid,source,0,status from actions; insert into operations select actionid,actionid,actiontype,recipient,userid,subject,message,scripts from actions; update operations set longdata=scripts_tmp where operationtype=1; -- cgit