qbcore-framework / qb-inventory

Slot Based Inventory System Used With QB-Core :school_satchel:
GNU General Public License v3.0
49 stars 376 forks source link

Update mysql statements #427

Closed divide29 closed 11 months ago

divide29 commented 1 year ago

If you use a MySQL server, you can use the "json" instead of "longtext". If you still use MariaDB, the "json" will be translated back to "longtext". So this only has an impact on the aesthetics. In the newest MySQL version, integer must not contain length anymore. Also, the "Primary Key" should always have an integer as value, which is why all keys are placed on the id, and e.g. "plate" is treated as a normal key.

At last I set the charset to UTF8MB4.

Description

Some changes of it will handle the removal of depracted values for the next mysql version.

Checklist