On Tue, Jul 1, 2008 at 10:11 AM, Colin Kingswood &lt;<a href="mailto:colinkingswood@gmail.com">colinkingswood@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all, I am new to Jifty and still getting my head around the concepts. <br><br>So I am starting to get my model working, but not 100%. <br><br>What I want to do is re parse my model files completely, and forget about any previous versions of th e database tables.&nbsp; (So rather than marking all my changes with &#39;since&#39;, I can just get it to go and delete the current tables / then recreate them as the model currently is). </blockquote>
<div><br>When I&#39;m initially prototyping the tables in SQLite, I just delete the database file and let it reinitialize again automatically when I restart the server. <br><br>You can run:<br><br>bin/jifty schema --drop-database<br>
bin/jifty schema --setup<br><br>This assumes that your database user has permission to drop and create the database for your application in your DBMS.<br><br>It might be nice to have a script to drop all tables instead, but I don&#39;t think there is any such thing yet.<br>
<br>Cheers,<br>Sterling<br><br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>It seems to work when I drop all of the tables, but it would be easier if I could get Jifty to do this<br><br>I can&#39;t find anything in the documentation about how this is done (or i am not yet able to understand&nbsp; the concepts enough to realise what I need to do).<br>
<font color="#888888">
<br>Colin<br> 
</font><br>_______________________________________________<br>
jifty-devel mailing list<br>
<a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br>
<a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>
<br></blockquote></div><br>