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]<pylons-discuss%[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.
