cms
cms copied to clipboard
Changing a field from Matrix to another fieldtype orphans the matrix table and elements
Description
I switched a matrix field to a plaintext field (I was actually trying to switch the field because the matrix field wouldn't delete, but that's another story).
I ended up deleting the field as a plaintext field and the matrix table did not delete.
I tried re-creating the field as a matrix and deleting again and the table is still there.
Steps to reproduce
- Create a Matrix field.
- Switch the Matrix field to a Plaintext field.
- Check the database, the matrix table and elements still exist in the database.
Additional info
- Craft version: 3.2.8
- PHP version: 7.2
- Database driver & version: Maria DB
Yeah this is a known issue which we plan on fixing in Craft 4 alongside some other field refactoring.
Thank you!!