Contributions 1 min read
Change type column of object_relations_* tables to enum
Another one of our pull requests is accepted, and this time, our Pimcore team made sure that we can safely keep our database integrity. Find out how they did it.
What was the issue?
In tables where relations are stored, column ‘type’ that represents the type of the object that is in relation was set to varchar(50). The problem wasn’t severe because pimcore handles the changes in that column but it was possible to change that value directly in the database and put something that is not supported by Pimcore.
How did you solve it?
Type of column ‘type’ is changed from varchar(50) to enum(‘object’, ‘asset’, ‘document’) limiting values in that field to that that Pimcore can work with.
Why is this fix important?
It helps in keeping database integrity and also lowers the chance of having a bad value in that field.
Which Pimcore learning materials would you recommend to your colleagues?
Our blog posts on Pimcore and how-to guides of course. Also, official Pimcore documentation and their demo project are a great way to start. There is a lot of examples in it and you’ll find out exactly how the platform works.
And if you want to check out this pull request, just follow the link!
Related
Contributions Fixing export functionality when exporting zero
Read more about the latest pull request we've made regarding the development of Pimcore platform! Our Pimconaut, Tomislav, made sure that users can now export to XLIFF any… 1 min read
Contributions Table data type not using the table config fix
We've discovered a new bug - and now it's fixed! Check out how Dino, our Pimcore developer, fixed this issue and made sure that Table data types work… 1 min read
Contributions Fixing the invisible field inside block element
Another Pimcore fix is coming straight from Factory! Our Pimcore developer, Dino, recently fixed the issue related to invisible fields inside block elements. Visit us and read more… 1 min read
