diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-09 09:49:20 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-09 09:49:20 +0000 |
commit | 3468442e3f24759afb3b9829f44c34587c45d265 (patch) | |
tree | 8bf7e5e652633b8a98564fad61a6ac8aeb03baca /upgrades/dbpatches/1.4/mysql | |
parent | 03ee73a8cac0f30d4dfa7457f797b8c71be0e2c9 (diff) | |
download | zabbix-3468442e3f24759afb3b9829f44c34587c45d265.tar.gz zabbix-3468442e3f24759afb3b9829f44c34587c45d265.tar.xz zabbix-3468442e3f24759afb3b9829f44c34587c45d265.zip |
- fixed linkage of applications in 1.1.x migration scripts (Alexei)
- fixed permissiong of Admin in 1.1.x migration scripts (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@4263 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'upgrades/dbpatches/1.4/mysql')
-rw-r--r-- | upgrades/dbpatches/1.4/mysql/patch/items_applications.sql | 2 | ||||
-rw-r--r-- | upgrades/dbpatches/1.4/mysql/patch/users.sql | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql b/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql index 92178eb7..6d02fd7d 100644 --- a/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql +++ b/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql @@ -6,7 +6,7 @@ CREATE TABLE items_applications_tmp ( ) ENGINE=InnoDB; CREATE INDEX items_applications_1 on items_applications_tmp (applicationid,itemid); -insert into items_applications_tmp select NULL,applicationid,applicationid from items_applications; +insert into items_applications_tmp select NULL,applicationid,itemid from items_applications; drop table items_applications; alter table items_applications_tmp rename items_applications; diff --git a/upgrades/dbpatches/1.4/mysql/patch/users.sql b/upgrades/dbpatches/1.4/mysql/patch/users.sql index c2a31e17..03ff99ff 100644 --- a/upgrades/dbpatches/1.4/mysql/patch/users.sql +++ b/upgrades/dbpatches/1.4/mysql/patch/users.sql @@ -14,6 +14,6 @@ CREATE TABLE users_tmp ( CREATE INDEX users_1 on users_tmp (alias); insert into users_tmp select userid,alias,name,surname,passwd,url,autologout,lang,refresh,1 from users; -update users_tmp set type=3 where name='Admin'; +update users_tmp set type=3 where alias='Admin'; drop table users; alter table users_tmp rename users; |