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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to clean DB


Go to End


3 Posts   1940 Views

Avatar
roterl

Community Member, 44 Posts

6 December 2009 at 12:16pm

Edited: 06/12/2009 12:18pm

After I do some coding, I end off with a lot of mess in the DB.

Is there any way to delete the unused DB tables and fields ? After all SS know which are not in use

Thanks,
Rotem.

Avatar
Sean

Forum Moderator, 922 Posts

6 December 2009 at 1:46pm

You'll have to manually open phpMyAdmin and edit the tables and structure yourself. There are no automated tools with SS for cleaning the database.

Avatar
roterl

Community Member, 44 Posts

6 December 2009 at 9:21pm

this can be nice feature request.
when calling the /dev/build, instead of just add the new fields to delete the unused one (when adding some parameter, like /dev/build?delunuse=1 or so) so for regular updated it will keep the current - safe - behavior.