Do you really need the id's to remain the same? Note, if you use this method <http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#CSV--all-tables-at-once-> to migrate, web2py will automatically update any reference fields so they contain the new ids of referenced records.
Anthony On Wednesday, October 5, 2016 at 5:47:36 PM UTC-4, [email protected] wrote: > > I'm doing a migrate data of 2 databases with diferents tables. > > My only problems is with ids! > > table 1 > id: 5, name: Diana > id: 8, name: Carlos > > > when i migrate this data to databases 2 > id: 1, name: Diana > id: 2, name: Carlos > > Look the id's not the same. > > what is the method to save the same id? > I read about primarekey parameters but dont work. > > The process of migrate if a script with 2 Pydal, one for the old database > and other for new databases. > I execute one select() of everithing (not much data), later convert to the > new structure and all work perfectly. the only problem is with ID . > > Please help me, thanks. > -- 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.

