[jifty-devel] restarting my model

Sterling Hanenkamp sterling at hanenkamp.com
Tue Jul 1 16:25:26 EDT 2008


On Tue, Jul 1, 2008 at 10:11 AM, Colin Kingswood <colinkingswood at gmail.com>
wrote:

> Hi all, I am new to Jifty and still getting my head around the concepts.
>
> So I am starting to get my model working, but not 100%.
>
> What I want to do is re parse my model files completely, and forget about
> any previous versions of th e database tables.  (So rather than marking all
> my changes with 'since', I can just get it to go and delete the current
> tables / then recreate them as the model currently is).


When I'm initially prototyping the tables in SQLite, I just delete the
database file and let it reinitialize again automatically when I restart the
server.

You can run:

bin/jifty schema --drop-database
bin/jifty schema --setup

This assumes that your database user has permission to drop and create the
database for your application in your DBMS.

It might be nice to have a script to drop all tables instead, but I don't
think there is any such thing yet.

Cheers,
Sterling



>
>
> It seems to work when I drop all of the tables, but it would be easier if I
> could get Jifty to do this
>
> I can't find anything in the documentation about how this is done (or i am
> not yet able to understand  the concepts enough to realise what I need to
> do).
>
> Colin
>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jifty.org/pipermail/jifty-devel/attachments/20080701/e3f1ac61/attachment.htm 


More information about the jifty-devel mailing list