Jump to:

22977 Posts in 11742 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Empty _versions tables?

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

Page: 1
Go to End
Author Topic: 972 Views
  • poblom
    Avatar
    Community Member
    25 Posts

    Empty _versions tables? Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Empty _versions tables? Link to this post

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

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: Empty _versions tables? Link to this post

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

  • poblom
    Avatar
    Community Member
    25 Posts

    Re: Empty _versions tables? Link to this post

    Thanks willr!

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

    972 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.