MyBB Community Forums

Full Version: Column Modification Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently the code for $db->add_column and $db->modify_column do not actually check if the column type or definition are valid for the database engine that is used.  SQLite doesn't have VARBINARY, but instead is called BLOB as one example.  I propose creating another method in the database classes that actually validates what column types and attributes are available.   If the column type is not supported, then it returns the equivalent for that database engine.  Any attributes that are not supported such as UNSIGNED are stripped out from the definition as well.

The reason for this suggestion is that many plugins on the extend site only support MySQLi.  This leaves users that don't have that available or who prefer to use a different database engine a lot less options and would generally need to hire a developer to make changes to make the plugin work.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/4350

Thanks for contributing to MyBB!

Regards,
The MyBB Group