[web2py] Re: Create other autoincrement field besides the id on MongoDB

2014-06-14 Thread Leonardo Tada
I understood, but have a way to make other field like auto-increment? Em domingo, 8 de junho de 2014 01h38min56s UTC-3, Massimo Di Pierro escreveu: > > If you use db = DAL('mongodb:...') > > tables get automatically an integer "id" field. It is not auto-increment > and it is stored as a UUID by

[web2py] Re: Create other autoincrement field besides the id on MongoDB

2014-06-07 Thread Massimo Di Pierro
If you use db = DAL('mongodb:...') tables get automatically an integer "id" field. It is not auto-increment and it is stored as a UUID by mongo. web2py converts the UUID to an integer and back so that web2py does not break. On Thursday, 5 June 2014 23:08:03 UTC-5, Leonardo Tada wrote: > > I kno