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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -