Code available @

https://github.com/gravesmedical/migration

Its just a series of scripts that gets run in the order they are in the 
scripts directory.

-Mark


On Sunday, November 22, 2015 at 8:58:05 PM UTC-6, Mark Graves wrote:
>
> Are there any caveats to know about running applications in shell mode 
> (e.g. transactions / returning id)?
>
> I'm running a middleware migration script to migrate someone off an old 
> database to a new one.
>
> When I run a db.table.validate_and_insert() it keeps returning me id 1.
> This is yielding a duplicate key error understandably.
>
> It's like pydal and postgres are coming out of sync.
>
> Theres only one connection to the database, but the sequence is not being 
> updated.
>
> Any thoughts?
>
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to