Skip to main content
Known Participant
March 29, 2011
Question

ID column type always varchar in pgsql

  • March 29, 2011
  • 1 reply
  • 513 views

Hello,

I'm using Orm, and I can't manage to set a ID column as sequence or integer with Postgres. It's always set as varchar, so foreignkeys don't match. I need to set it serial or increment..

Thank you very much

This topic has been closed for replies.

1 reply

Inspiring
March 29, 2011

Create your tables with sql create table queries.  Then you have contol over your database design.

Owainnorth
Inspiring
March 29, 2011

Seconded. Orm is all lovely and everything, but I wouldn't trust it to design a database for me.