summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--upgrades/dbpatches/1.4/mysql/patch/items_applications.sql2
-rw-r--r--upgrades/dbpatches/1.4/mysql/patch/users.sql2
-rw-r--r--upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql2
-rw-r--r--upgrades/dbpatches/1.4/postgresql/patch/users.sql2
5 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 7e5f1171..29cc59a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,8 @@ Changes for 1.5:
Changes for 1.4.1:
+ - fixed linkage of applications in 1.1.x migration scripts (Alexei)
+ - fixed permissiong of Admin in 1.1.x migration scripts (Alexei)
- fixed bug in processing of host groups permissions (Alexei)
- minor fix of zabbix_sender command line help (Alexei)
- fixed pinger to process DNS name instead of host name (Alexei)
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;
diff --git a/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql b/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql
index 9c345851..7852a23d 100644
--- a/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql
+++ b/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql
@@ -6,7 +6,7 @@ CREATE TABLE items_applications_tmp (
);
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 to items_applications;
diff --git a/upgrades/dbpatches/1.4/postgresql/patch/users.sql b/upgrades/dbpatches/1.4/postgresql/patch/users.sql
index 67c0bbe1..b3fe5776 100644
--- a/upgrades/dbpatches/1.4/postgresql/patch/users.sql
+++ b/upgrades/dbpatches/1.4/postgresql/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 to users;