#1 2017-07-11 14:52:22

StxLog
Member
From: France
Registered: 2015-09-14
Posts: 58

Unique constraint

Hi mORMot community,

It seems that if I define a field as "stored AS_UNIQUE" in my model, and then later I decide it should'nt be Unique, if I remove the "stored AS_UNIQUE" the constraint remain in the DB.
I understand it is normal and it's not a bug from mORMot, but what is the best way to remove this constraint? Should I use plain SQL on the database directly? Is there a "mormot way" I haven't seen?

Thanks for your help

Offline

#2 2017-07-11 19:04:40

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: Unique constraint

Plain SQL is the way to go, here...

Offline

Board footer

Powered by FluxBB