BRACKETS-by-TRIAD / craftable-pro-docs

Craftable PRO is an admin panel for your Laravel project build with InertiaJS, Vue and TailwindCSS.
https://docs.craftable.pro
MIT License
7 stars 1 forks source link

MariaDB changes jsonb to longtext so the getAndSetTranslatableColumns is not working #56

Closed blazodragan closed 10 months ago

blazodragan commented 12 months ago

MariaDB changes jsonb to longtext so the getAndSetTranslatableColumns is not working because it's searching for json or jsonb - this is not a bug but if someone has a problem with setting translation when using the CRUD generator this is the reason.

A small fix for this is in line 108 WizardGeneratorTrait.php just change ->whereIn('type', ['json', 'jsonb']) to ->whereIn('type', ['json', 'jsonb', 'longtext'])

VladyslavMazurets commented 11 months ago

This is in progress in the PR: fix/type-in-wizard-generator-trait

strstensky commented 10 months ago

The fix was released in version 1.1.22.