diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-05 16:40:54 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-05 16:40:54 +0000 |
commit | 2c60c60586f351a6fdbc74e720ed39ec05c5df74 (patch) | |
tree | 951e27402b081c9660997d00a43822cea46754bf /upgrades/dbpatches | |
parent | 0c1ad6bd6bf603a55b52c34115506d2b2dcbd294 (diff) | |
download | zabbix-2c60c60586f351a6fdbc74e720ed39ec05c5df74.tar.gz zabbix-2c60c60586f351a6fdbc74e720ed39ec05c5df74.tar.xz zabbix-2c60c60586f351a6fdbc74e720ed39ec05c5df74.zip |
- added hosts.dns. Host name is for informational purposes only. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3792 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'upgrades/dbpatches')
-rw-r--r-- | upgrades/dbpatches/1.3/mysql/patch/hosts.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/upgrades/dbpatches/1.3/mysql/patch/hosts.sql b/upgrades/dbpatches/1.3/mysql/patch/hosts.sql index 2e47cd7d..4023af58 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/hosts.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/hosts.sql @@ -1,6 +1,7 @@ CREATE TABLE hosts_tmp ( hostid bigint unsigned DEFAULT '0' NOT NULL, host varchar(64) DEFAULT '' NOT NULL, + dns varchar(64) DEFAULT '' NOT NULL, useip integer DEFAULT '1' NOT NULL, ip varchar(15) DEFAULT '127.0.0.1' NOT NULL, port integer DEFAULT '0' NOT NULL, @@ -14,6 +15,6 @@ CREATE TABLE hosts_tmp ( CREATE INDEX hosts_1 on hosts_tmp (host); CREATE INDEX hosts_2 on hosts_tmp (status); -insert into hosts_tmp select hostid,host,useip,ip,port,status,disable_until,error,available,errors_from from hosts; +insert into hosts_tmp select hostid,host,dns,useip,ip,port,status,disable_until,error,available,errors_from from hosts; drop table hosts; alter table hosts_tmp rename hosts; |