X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FUser.pm;h=f324e3629694f584e6413150e1d6b7e4224b5164;hb=fec48603264c8adad06fbc212358633778322b56;hp=6d671c4bdfeb80a834c07f40401fb3fd6c9715e8;hpb=d38eaef8d62fc0826fa963c0ebea4fced33f5410;p=kivitendo-erp.git diff --git a/SL/User.pm b/SL/User.pm index 6d671c4bd..f324e3629 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -25,7 +25,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #===================================================================== # # user related functions @@ -127,7 +128,7 @@ sub login { my $dbupdater = SL::DBUpgrade2->new(form => $form)->parse_dbupdate_controls; my @unapplied_scripts = $dbupdater->unapplied_upgrade_scripts($dbh); - $dbh->disconnect; +# $dbh->disconnect; if (!@unapplied_scripts) { SL::DB::Manager::Employee->update_entries_for_authorized_users; @@ -442,6 +443,8 @@ sub dbupdate2 { my @upgradescripts = $dbupdater->unapplied_upgrade_scripts($dbh); + $::lxdebug->log_time("DB upgrades commencing"); + foreach my $control (@upgradescripts) { # Apply upgrade. Control will only return to us if the upgrade has # been applied correctly and if the update has not requested user @@ -452,6 +455,8 @@ sub dbupdate2 { $dbupdater->process_file($dbh, "sql/Pg-upgrade2/$control->{file}", $control); } + $::lxdebug->log_time("DB upgrades finished"); + $dbh->disconnect; }