https://bugzilla.wikimedia.org/show_bug.cgi?id=15441

--- Comment #9 from Fabien Coelho <[email protected]> 2012-01-13 
10:20:33 UTC ---
(In reply to comment #7)

> Is there a nice way to convert a unique key to a PK without having to drop and
> re-add it?

AFAIK, not for PostgreSQL.

For the order, it seems safer to add first the PK constraint and then to drop
the UNIQUE, rather than the other way around.

A PK is a UNIQUE + NOT NULL. You must hope that the data do not use a NULL for
some reason.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to