[sequel-pro] How to create composite primary key in Sequel Pro?

5,782 views
Skip to first unread message

jia

unread,
Apr 20, 2010, 1:01:41 PM4/20/10
to Sequel Pro
I couldn't find a way in the UI to create composite key. Any hint?
Thanks.

--
You received this message because you are subscribed to the Google Groups "Sequel Pro" group.
To post to this group, send email to seque...@googlegroups.com.
To unsubscribe from this group, send email to sequel-pro+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sequel-pro?hl=en.

Jakob Egger

unread,
Apr 21, 2010, 5:17:27 PM4/21/10
to seque...@googlegroups.com
1) If any field in your table has "auto_increment" in the extras column, remove it
2) if there is a primary index, remove it
3) click the add index button
4) where it says "indexed columns", type the columns you want in your key, separated by comma
5) click add


We are aware that this procedure is somewhat awkward. There are plans to improve this interface.

A related issue/feature request is http://spbug.com/480

Hope I could help,

Jakob Egger
Reply all
Reply to author
Forward
0 new messages