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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Empty _versions tables?


Reply


4 Posts   1094 Views

Avatar
poblom

Community Member, 25 Posts

23 September 2009 at 7:55am

Just to be sure before I proceed - Is it safe to empty (truncate table) any/all "XXXXX_versions" tables?
Provided of course that we don't need all those versions.

Avatar
Willr

Forum Moderator, 5513 Posts

23 September 2009 at 7:20pm

Yes it is perfectly fine as long as you don't want to restore to one of those given versions :P. Make sure you get all base classes (and subclass's).

Avatar
Martijn

Community Member, 271 Posts

23 September 2009 at 9:41pm

This there a function to delete all version tables? Or should it be done with a custom SQL query?

Avatar
poblom

Community Member, 25 Posts

24 September 2009 at 8:00am

Thanks willr!

I did this within phpMyAdmin! The SQL command would be: TRUNCATE TABLE table_name