Thank you, I hadn't thought about this, Fabrice
On 27 September 2010 18:11, Brian O'Connor <[email protected]> wrote: > If you want to drop the database when you run setup-app, this is how you can > do it: > > In websetup.py, in setup_app, you can run this: > > > > meta.metadata.drop_all(checkfirst=True) > > > On Mon, Sep 27, 2010 at 3:56 AM, Fabrice <[email protected]> wrote: >> >> When running setup-app on an existing database, this latest is not >> updated. I have to manually drop modified tables then run the script >> again. >> >> How can I force setup-app to delete the database before recreate new >> tables ? >> >> Sincerely, >> >> Fabrice >> >> -- >> You received this message because you are subscribed to the Google Groups >> "pylons-discuss" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/pylons-discuss?hl=en. >> > > > > -- > Brian O'Connor > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
