+1 for the option.

I would love to do it, however I would need some help since I have never
looked at sql.py in depth.

The execution of the SQL statements would need to be suppressed if repair =
True.

Would you just need an if statement before all the database executions?

if not repair:
   self._db._execute

-Thadeus




On Mon, Nov 2, 2009 at 4:42 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

>
> Perhaps somebody can help us here.
>
> Look where in the code the tables are read/created.
>
> we could add an option define_table(....repair=True) that does not
> read but only writes the tables, assuming the db is consistent.
>
> Massimo
>
> On Nov 2, 4:34 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> > It was critical :)
> >
> > I ended up adding migrate=False. using db.export_to_csv, dropping the
> > database, creating the database, remove migrate, and db.import_from_csv.
> >
> > Next time, It would be nice to be able to just rebuild the files >.<
> >
> > Ran the rm command, didn't notice I was on my remote console instead of
> my
> > local =/
> >
> > -Thadeus
> >
> > On Mon, Nov 2, 2009 at 4:30 PM, mdipierro <mdipie...@cs.depaul.edu>
> wrote:
> >
> > > They can be rebuilt. But I do not have a script for doing that. I can
> > > write instructions if that becomes crytical.
> >
> > > On Nov 2, 3:46 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> > > > If you accidentally delete all the files under databases on a
> production
> > > > app... This is a problem..
> >
> > > > migrate=False on every table? Or should the database be rebuilt?
> >
> > > > How to disable migrations on the auth table?
> >
> > > > -Thadeus
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to