X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Frose_auto_create_model.pl;h=2ab34cb90d38b3db92463d2d5426a798ffa995a0;hb=abafb475d9742e3a6c28427477235c923b21eeef;hp=2604fcefa6eba768eb27ebe30c72f083f1bc8099;hpb=cff913a1c984f82558a7d59dec0b8b1a06c5530d;p=kivitendo-erp.git diff --git a/scripts/rose_auto_create_model.pl b/scripts/rose_auto_create_model.pl index 2604fcefa..2ab34cb90 100755 --- a/scripts/rose_auto_create_model.pl +++ b/scripts/rose_auto_create_model.pl @@ -7,7 +7,6 @@ BEGIN { unshift(@INC, $FindBin::Bin . '/../modules/override'); # Use our own versions of various modules (e.g. YAML). push (@INC, $FindBin::Bin . '/..'); # '.' will be removed from @INC soon. - push (@INC, $FindBin::Bin . '/../modules/fallback'); # Only use our own versions of modules if there's no system version. } use CGI qw( -no_xhtml); @@ -82,6 +81,9 @@ our %foreign_key_name_map = ( reconciliation_links => { acc_trans_id => 'acc_trans' }, assembly => { parts_id => 'part', id => 'assembly_part' }, + assortment_items => { parts_id => 'part' }, + + dunning => { trans_id => 'invoice', fee_interest_ar_id => 'fee_interest_invoice' }, }, ); @@ -429,8 +431,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"); @@ -465,6 +465,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|); @@ -488,7 +490,6 @@ sub drop_and_create_test_database { signature => '', hide_cvar_search_options => '', numberformat => '1.000,00', - vclimit => 0, favorites => '', copies => '', menustyle => 'v3',