diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-28 12:38:44 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-28 12:38:44 +0000 |
commit | 37bd95902dd4725301c18a98e35f84030a2ab910 (patch) | |
tree | fd9ca18d2d57b5f9a362fee958b2b38d95ba4b6e /upgrades/dbpatches/1.3/mysql/patch/applications.sql | |
parent | 865f524c0ce05acbcc119b7883a95ee619416401 (diff) | |
download | zabbix-37bd95902dd4725301c18a98e35f84030a2ab910.tar.gz zabbix-37bd95902dd4725301c18a98e35f84030a2ab910.tar.xz zabbix-37bd95902dd4725301c18a98e35f84030a2ab910.zip |
Fixes of MySQL patches.
git-svn-id: svn://svn.zabbix.com/trunk@3853 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'upgrades/dbpatches/1.3/mysql/patch/applications.sql')
-rw-r--r-- | upgrades/dbpatches/1.3/mysql/patch/applications.sql | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/upgrades/dbpatches/1.3/mysql/patch/applications.sql b/upgrades/dbpatches/1.3/mysql/patch/applications.sql index 9b18bfb7..97ff0845 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/applications.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/applications.sql @@ -1,10 +1,10 @@ CREATE TABLE applications_tmp ( - applicationid bigint unsigned NOT NULL auto_increment, - hostid bigint unsigned DEFAULT '0' NOT NULL, - name varchar(255) DEFAULT '' NOT NULL, - templateid bigint unsigned DEFAULT '0' NOT NULL, - PRIMARY KEY (applicationid) -) ENGINE=InnoDB ; + applicationid bigint unsigned DEFAULT '0' NOT NULL, + hostid bigint unsigned DEFAULT '0' NOT NULL, + name varchar(255) DEFAULT '' NOT NULL, + templateid bigint unsigned DEFAULT '0' NOT NULL, + PRIMARY KEY (applicationid) +) ENGINE=InnoDB; CREATE INDEX applications_1 on applications_tmp (templateid); CREATE UNIQUE INDEX applications_2 on applications_tmp (hostid,name); |