]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/rose_auto_create_model.pl
Module: gebundletes YAML durch dünnen Wrapper über YAML::XS & YAML ersetzt
[mfinanz.git] / scripts / rose_auto_create_model.pl
index dc3d0176c4cc1a71a983a93d186416adf98fbc23..111b0c7a4695b69ad066ac39761e516f09299a02 100755 (executable)
@@ -430,8 +430,6 @@ sub drop_and_create_test_database {
     $auth_dbh->disconnect;
 
     dbh_do($dbh_template, "DROP DATABASE \"" . $db_cfg->{db} . "\"", message => "Database could not be dropped");
-
-    $::auth->reset;
   }
 
   notice("Creating database");
@@ -466,6 +464,8 @@ sub drop_and_create_test_database {
 
   apply_upgrades(auth => 1, dbh => $dbh);
 
+  $::auth->reset;
+
   notice("Creating client, user, group and employee");
 
   dbh_do($dbh, qq|DELETE FROM auth.clients|);