database failure: 'dynamicenum NULL'


I’m receiving the following log error:

Fri Jan 22 10:19:58 2016 [11899][1][FATAL] Executing repair query: Query Failed: ALTER TABLE documents modify COLUMN doc_type dynamicenum NULL: MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘dynamicenum NULL’ at line 1

I’m unable to execute the script from repair/rebuild.

I also obtain this error when trying to upgrade SuiteCRM.

I’m not exactly sure how to debug this error. please help.