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   445 Views

Avatar
suntrop

Community Member, 131 Posts

14 August 2012 at 8:18pm

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

Forum Moderator, 1798 Posts

17 August 2012 at 10:43am

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"