From f757771128c7c9414a35ac2743ff123934a8b211 Mon Sep 17 00:00:00 2001 From: Falko Timme <ft@falkotimme.com> Date: Fri, 09 Jan 2015 10:39:04 -0500 Subject: [PATCH] - Made sure SQL backups from servers that differ from the server where the website is on can be restored. A download of the backup is not possible in such a case, therefore I hide the "Download" button. --- install/sql/incremental/upd_0039.sql | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/install/sql/incremental/upd_0039.sql b/install/sql/incremental/upd_0039.sql index b5f6463..af8a5af 100644 --- a/install/sql/incremental/upd_0039.sql +++ b/install/sql/incremental/upd_0039.sql @@ -1,4 +1,4 @@ --- -------------------------------------------------------- +-- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `web_database_user` @@ -26,6 +26,10 @@ -- -------------------------------------------------------- +INSERT INTO `web_database_user` SELECT NULL, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, '0', `database_user`, `database_password` FROM `web_database` WHERE 1; + +-- -------------------------------------------------------- + UPDATE `web_database`, `web_database_user` SET `web_database`.`database_user_id` = `web_database_user`.`database_user_id` WHERE `web_database_user`.`database_user` = `web_database`.`database_user`; -- -------------------------------------------------------- -- Gitblit v1.9.1