Glauco ha scritto: > Thank you kevin , i've worked a lot over PG and this tecnique is > consolidated in our model.. but here the problem is that the column > is a simply <column_name> INTEGER NOT NULL references > <other_table>(id) and i cannot understand why sqlalchemy whant to use it > as a > <column_name> SERIAL >
Make that foreign key primary as well: INTEGER REFERENCES ... PRIMARY KEY Also, like Mike said, the autoload mechanism (or something below) infers that it's a serial column, you should turn that off with autoincrement=False in the Table constructor, where you autoload the schema. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
