python - SQLAlchemy: how to make primary_key not unique (PostgreSQL)? -
i need that. i've tried define in model:
vs_id = column(integer, primary_key=true, unique=false)
but didn't work - database schema has such row:
alter table my_table__ add constraint my_table___pkey primary key (vs_id);
how solve this? in advance!
the primary key must unique, in order able refer specific record.
if need this, add field isn't unique!
Comments
Post a Comment