Skip to content

Commit

Permalink
Check DB type before calling check_pgsql_bool_columns()
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Sep 22, 2019
1 parent c7f8791 commit b215c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/install.php
Expand Up @@ -884,7 +884,7 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes
# not a Mantis schema upgrade but nevertheless required due to
# changes in the code

if( $t_last_update > 51 && $t_last_update < 189 ) {
if( $f_db_type == 'pgsql' && $t_last_update > 51 && $t_last_update < 189 ) {
# Since MantisBT 1.1.0 / ADOdb 4.96 (corresponding to schema 51)
# 'L' columns are BOOLEAN instead of SMALLINT
# Check for any DB discrepancies and update columns if needed
Expand Down

0 comments on commit b215c4d

Please sign in to comment.