@@ -, +, @@ --- installer/data/mysql/updatedatabase.pl | 32 +++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -20011,14 +20011,30 @@ if ( CheckVersion($DBversion) ) { } # Dropping the check constraint in accountlines - $dbh->do( - qq{ - ALTER TABLE - accountlines - DROP CHECK - `accountlines_check_type` - } - ); + eval { + # MySQL Specific Drop + $dbh->do( + qq{ + ALTER TABLE + accountlines + DROP CHECK + `accountlines_check_type` + } + ); + }; + if ($@) { + # MariaDB Specific Drop + eval { + $dbh->do( + qq{ + ALTER TABLE + accountlines + DROP CONSTRAINT + `accountlines_check_type` + } + ); + }; + } # Update accountype 'C' to 'CREDIT' $dbh->do( --