Jump to:

18591 Posts in 4875 Topics by 2285 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba

Page: 1
Go to End
Author Topic: 748 Views
  • poblom
    Avatar
    Community Member
    23 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
    4724 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
    270 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
    23 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

    748 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.