my team has started using bookshelf.js in our node app knex. default, orm object uses id field created "serial" type in postgresql. have existing data need insert db. understanding database "id" field want start 1.
- so there way have postgres serial number start @ particular number (also there issues using clustered database , serial datatype)?
- is there way set field "integer" field type through knex/bookshelf , use sequence nextval?
- any other options (not looking extreme hacks here either)?
we using following stack:
- postgres: 9.x
- nodejs: 4.4.4 lts
- knex: 0.11.8
- bookshelf: 0.10.0
thanks!
Comments
Post a Comment