summaryrefslogtreecommitdiffstats
path: root/upgrades/dbpatches/1.3/postgresql/patch/users.sql
diff options
context:
space:
mode:
Diffstat (limited to 'upgrades/dbpatches/1.3/postgresql/patch/users.sql')
-rw-r--r--upgrades/dbpatches/1.3/postgresql/patch/users.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/upgrades/dbpatches/1.3/postgresql/patch/users.sql b/upgrades/dbpatches/1.3/postgresql/patch/users.sql
index ac094cfe..67c0bbe1 100644
--- a/upgrades/dbpatches/1.3/postgresql/patch/users.sql
+++ b/upgrades/dbpatches/1.3/postgresql/patch/users.sql
@@ -13,6 +13,7 @@ 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,3 from users;
+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';
drop table users;
alter table users_tmp rename to users;