@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_23049_debit.perl | 6 ++++++ 1 file changed, 6 insertions(+) --- a/installer/data/mysql/atomicupdate/bug_23049_debit.perl +++ a/installer/data/mysql/atomicupdate/bug_23049_debit.perl @@ -91,6 +91,12 @@ if ( CheckVersion($DBversion) ) { } ); + $dbh->do( + qq{ + UPDATE accountlines SET debit_type = accounttype, accounttype = NULL WHERE accounttype IN (SELECT code from account_debit_types) + } + ); + # Add new permission $dbh->do( q{ --