Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ID column type always varchar in pgsql

New Here ,
Mar 29, 2011 Mar 29, 2011

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

TOPICS
Database access
493
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 29, 2011 Mar 29, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 29, 2011 Mar 29, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources