Ben

(e.g the page has a has_one with another page, and it has several fields in the DB array, and the functionality of that page is being changed so that they’re not used anymore, can I just remove them from the arrays?)

muskie9

you could, knowing that if something disappears it's likely from that change... the data should be retained (the columns don't get removed), so if you need to re-add them it shouldn't be an issue

muskie9

many_many should retain the joint table as well (I think)

Firesphere

Yeps, removal of fields/relations are never actively destroyed in the database

Ben

Cool, and there’s no weird gotchas or anything that I need to be careful of?

Ben

Also, are there any repercussions of removing fields from a pagetype?

Ben

I can’t find anywhere that it’s actually applicable though 😞 The class is used in a few other packages that have already been namespaced and are using it correctly.

Ben

I’m a bit stuck on where to start debugging.

Ben

👋 has anyone ever had ReflectionException: Class VersionedDataObject does not exist before? I’m trying to upgrade from version 1.5.0 of https://github.com/heyday/silverstripe-versioneddataobjects to version 2.0.5 (while upgrading php to 7.3 from 5.6 and silverstripe to 3.7.3)

Show 1 attachment(s)
heyday/silverstripe-versioneddataobjects

Provides Versioned DataObjects in SilverStripe

Hide attachment content
Ben

“work” meaning that they don’t force you to manually publish the image.