mybb / merge-system

The MyBB Merge System allows for easy merging of an existing forum (be it MyBB or another forum software) into a MyBB 1.8.x forum.
Other
34 stars 34 forks source link

Rework `get_length_info()` and `Converter_Module->prepare_insert_array()` #281

Closed yuliu closed 1 year ago

yuliu commented 2 years ago

Since https://github.com/mybb/mybb/issues/4166, the DB's show_fields_from() functions are reworked to have the same output of fields among different database systems. And as of MySQL 8.0.17, the display width for integer data types was deprecated (https://github.com/mybb/mybb/issues/4166#issuecomment-730332679 & https://dev.mysql.com/doc/refman/8.0/en/numeric-type-syntax.html). It means that we should make sure the Merge System's get_length_info() is compatible across the 3 database systems and correct Converter_Module->prepare_insert_array().

Related reports involves: https://github.com/mybb/merge-system/pull/260 https://community.mybb.com/thread-234435.html

There are other things we should take care of: