22983 Posts in 11709 Topics by 2827 members
|Go to End|
22 October 2010 at 7:23pm
Every page type also has a database table corresponding to it. Every time we modify the database, we need to rebuild it. We can do this by going to http://localhost/dev/build?flush=1. It may take a moment, so be patient. This add tables and fields needed by your site, and modifies any structures that have changed. It does this non-destructively - it will never delete your data.
As we have just created a new page type, SilverStripe will add this to the list of page types in the database.
in particular: http://localhost/dev/build?flush=1
I am trying to achieve this on a online site. but it seems to come up with a 'page not found'
using path: http:/my_site.com/sapphire/dev/build?flush=1
I can;t seem to get it to work for some reason.
22 October 2010 at 7:35pm
aha I found the answer, I was looking for the folder structure /dev/build but only found he one within the sapphire directory.
so the correct syntax for this is to append: /dev/build?flush=1 to your mainsites url like so:
This indeed updates the database.
|Go to Top|