Re: removing a unique constraint
Oleg Broytman <[email protected]>
| Newsgroups | gmane.comp.python.sqlobject |
|---|---|
| Message-ID | <[email protected]> |
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.
--
Oleg Broytman http://phdru.name/ [email protected]
Programmers don't die, they just GOSUB without RETURN.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2