diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-01-15 11:25:46 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-01-15 11:25:46 +0000 |
commit | c6bd226175985fbe30aaeb8a7cb9c1a60983e3bf (patch) | |
tree | 03f9bd25e8b46c19aaf838b17425d065eaf639f1 /upgrades/dbpatches/1.0beta2_to_1.0beta3 | |
parent | 963e9f27a9604c8299d52de4f05fd7aa570805e0 (diff) | |
download | zabbix-c6bd226175985fbe30aaeb8a7cb9c1a60983e3bf.tar.gz zabbix-c6bd226175985fbe30aaeb8a7cb9c1a60983e3bf.tar.xz zabbix-c6bd226175985fbe30aaeb8a7cb9c1a60983e3bf.zip |
Removed old patches
git-svn-id: svn://svn.zabbix.com/trunk@3709 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'upgrades/dbpatches/1.0beta2_to_1.0beta3')
-rw-r--r-- | upgrades/dbpatches/1.0beta2_to_1.0beta3/mysql/patch.sql | 54 | ||||
-rw-r--r-- | upgrades/dbpatches/1.0beta2_to_1.0beta3/postgresql/patch.sql | 53 |
2 files changed, 0 insertions, 107 deletions
diff --git a/upgrades/dbpatches/1.0beta2_to_1.0beta3/mysql/patch.sql b/upgrades/dbpatches/1.0beta2_to_1.0beta3/mysql/patch.sql deleted file mode 100644 index 1abbb5ab..00000000 --- a/upgrades/dbpatches/1.0beta2_to_1.0beta3/mysql/patch.sql +++ /dev/null @@ -1,54 +0,0 @@ -alter table items add value_type int(4) DEFAULT '0' NOT NULL; -alter table items_template add value_type int(4) DEFAULT '0' NOT NULL; - -alter table items modify lastvalue varchar(255) default null; -alter table items modify prevvalue varchar(255) default null; - -alter table functions modify lastvalue varchar(255) default '0.0000' not null; - -CREATE TABLE history_str ( - itemid int(4) DEFAULT '0' NOT NULL, - clock int(4) DEFAULT '0' NOT NULL, - value varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (itemid,clock) -); - -drop table groups; -drop table services_links; - -CREATE TABLE services_links ( - linkid int(4) NOT NULL auto_increment, - serviceupid int(4) DEFAULT '0' NOT NULL, - servicedownid int(4) DEFAULT '0' NOT NULL, - soft int(1) DEFAULT '0' NOT NULL, - PRIMARY KEY (linkid), - KEY (serviceupid), - KEY (servicedownid), - UNIQUE (serviceupid,servicedownid) -); - -CREATE TABLE rights ( - rightid int(4) NOT NULL auto_increment, - userid int(4) DEFAULT '' NOT NULL, - name char(255) DEFAULT '' NOT NULL, - permission char(1) DEFAULT '' NOT NULL, - id int(4), - PRIMARY KEY (rightid) -); - -insert into rights (rightid,userid,name,permission,id) values (1,1,"Default permission","U",0); -insert into rights (rightid,userid,name,permission,id) values (2,1,"Default permission","A",0); - - -alter table users drop groupid; -alter table config drop password_required; - -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (65,'Host name','system[hostname]', 1800, 1); -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (66,'Host information','system[uname]', 1800, 1); -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (67,'Version of zabbix_agent(d) running','version[zabbix_agent]', 3600, 1); -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (68,'WEB (HTTP) server is running','check_service[http]', 60, 0);insert into triggers_template (triggertemplateid,itemtemplateid,description,expression) - values (68,68,'WEB (HTTP) server is down on %s','{:.last(0)}<1'); diff --git a/upgrades/dbpatches/1.0beta2_to_1.0beta3/postgresql/patch.sql b/upgrades/dbpatches/1.0beta2_to_1.0beta3/postgresql/patch.sql deleted file mode 100644 index 3d4a3389..00000000 --- a/upgrades/dbpatches/1.0beta2_to_1.0beta3/postgresql/patch.sql +++ /dev/null @@ -1,53 +0,0 @@ -alter table items add value_type int4 DEFAULT '0' NOT NULL; -alter table items_template add value_type int4 DEFAULT '0' NOT NULL; - -alter table items modify lastvalue varchar(255) default null; -alter table items modify prevvalue varchar(255) default null; - -alter table functions modify lastvalue varchar(255) default '0.0000' not null; - -CREATE TABLE history_str ( - itemid int4 DEFAULT '0' NOT NULL, - clock int4 DEFAULT '0' NOT NULL, - value varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (itemid,clock), - FOREIGN KEY (itemid) REFERENCES items -); - -drop table groups; -drop table services_links; - -CREATE TABLE services_links ( - linkid serial, - serviceupid int4 DEFAULT '0' NOT NULL, - servicedownid int4 DEFAULT '0' NOT NULL, - soft int2 DEFAULT '0' NOT NULL, - PRIMARY KEY (linkid) -); - -CREATE TABLE rights ( - rightid serial, - userid int4 DEFAULT '' NOT NULL, - name char(255) DEFAULT '' NOT NULL, - permission char(1) DEFAULT '' NOT NULL, - id int4, - PRIMARY KEY (rightid) -); - - -insert into rights (rightid,userid,name,permission,id) values (1,1,"Default permission","U",0); -insert into rights (rightid,userid,name,permission,id) values (2,1,"Default permission","A",0); - -alter table users drop groupid; -alter table config drop password_required; - -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (65,'Host name','system[hostname]', 1800, 1); -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (66,'Host information','system[uname]', 1800, 1); -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (67,'Version of zabbix_agent(d) running','version[zabbix_agent]',3600, 1); -insert into items_template (itemtemplateid,description,key_,delay,value_type) - values (68,'WEB (HTTP) server is running','check_service[http]', 60, 0); -insert into triggers_template (triggertemplateid,itemtemplateid,description,expression) - values (68,68,'WEB (HTTP) server is down on %s','{:.last(0)}<1'); |