Hi Mirek,
On 02/04/15 09:35, Mirek Zvolský wrote:
But I don't understand, how is it possible?
The id's stay same as in source database ---or--- web2py creates a
mapping based on db model and changes foreign keys with primary keys
together?
New IDs are assigned, so links (e.g. FKs) will be maintained, but the
actually identifier will change - see: -
http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#CSV--all-tables-at-once-
...and especially the note about duplicate checking using UUIDs and
"upsert" behaviour.
HTH
--
Regards,
PhilK
'a bell is a cup...until it is struck'
--
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.