Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

Remove old database fields


Reply

2 Posts   438 Views

Avatar
suntrop

14 August 2012 at 8:18pm Community Member, 131 Posts

I have removed some unnecessary fields from my page.php (fields I created before)
I thought /dev/build/ should rename those fields with fieldname_old ?

But nothing happens. There is no notification while rebuilding the DB and fields won't change. What's wrong?

Avatar
swaiba

17 August 2012 at 10:43am Forum Moderator, 1796 Posts

nothing wrong - the system is building or changing what is required and leaves alot of items behind

not a bad thing as if youput a typo into the table and dev/build you would any existing data

if you do want a clean up - https://github.com/smindel/silverstripe-dbplumber contains a "remove artefacts"