A database error has occurred: ERROR: column "setting_type" contains null values

Hi,

I am upgrading the OJS 3.1.2 into 3.1.2.4.However, an error occurred during installation as follows:
A database error has occurred: ERROR: column “setting_type” contains null values

If I turn “ON” installed in config.inc.php, there was an error on article link by appearing this notification:

DB Error: ERROR: column “submission_id” does not exist LINE 3: WHERE submission_id = $1 ^

Hope anyone can help me to fix this problem.

Thank you.