Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Flush and build db from code

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: 631 Views
  • DeklinKelly
    Avatar
    Community Member
    197 Posts

    Flush and build db from code Link to this post

    Is there something I can put in _config.php or Page.php that will do the same thing as this?

    dev/build?flush=1

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Flush and build db from code Link to this post

    Have alook in the function build() in developmentAdmin.php

    This is pretty much what you need to get it to work

    $da = new DatabaseAdmin();
    $da->build();

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