Clean up database?

Silverstripe Version: 4.6

Question:

Hey,
is there a way to clean the database from old/removed fields?
I noticed when I remove a field from a custom created class which was created after running dev/build and run dev/build again, the removed fields are not getting removed from the database.

There’s no automated way of doing it out of the box. I generally just remove them manually if I’m changing fields around in my development system.

1 Like

Okay, thanks for the answer :grinning:

I was thinking this could make a neat module, but naturally, someone already made it!

https://addons.silverstripe.org/add-ons/oddnoc/silverstripe-artefactcleaner

3 Likes

I just tried it on a project, worked a treat.

Awesome man, thanks!!! :grin:

1 Like