On Thursday, April 26, 2018 at 11:52:01 PM UTC-7, [email protected] wrote: > > Hm - could it be db.drop_table("orders") in the controller? But how do I > make sure it is actually dropped? > > Sorry about the confusion... > > For a onetime use, just the sqlite3 command line, you don't need to do it in a contoller.
If you have the migrate options set appropriately (which is the default when the "make new app" button is used, IIRC), then the very next request should create the new version of the table. (I use an integer for a year date in one of my apps, and it works very well for me. I use it with the IN_RANGE() validator because I am not tracking coins older than 1965.) /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

