Re: [SQLObject] removing a unique constraint
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Timothy W. G. <tim...@si...> - 2011-07-12 21:46:12
|
Thanks for your advice, Oleg, but could you help me out just a little bit more? By 'You must drop it yourself', are you meaning that I need to go back to using plain old SQL? (I haven't had to do that for awhile thanks to SQLObject!!!) Can I issue SQL commands to my database through SQLObject? Thanks again for your help. Best regards, Tim On 12/07/2011 11:23, Oleg Broytman wrote: > On Tue, Jul 12, 2011 at 12:05:40AM +0100, Timothy W. Grove wrote: >> I now would like to remove the unique constraint on the 'lang1' column. >> How would I do this? Thanks. > SQLObject can only add/drop column, explicit indices and joins. > Unique constraint creates an implicit index which SQLObject doesn't know > about and cannot drop. You are to drop it yourself - list indices for > your table and issue DROP INDEX. > > Oleg. |