mirkosertic/MogwaiERDesignerNG

Cant define PRIMARY_KEY?

xebcam opened this issue · 2 comments

Sorry but I can't find a way to define an attribute as a PRIMARY_KEY is this a bug or maybe I'm missing something in the table generation dialog? I dont see any option to define a primary key here.

image

I would greatly appreciate if some one could tell me how to define primary keys.

I'm using PostgreSQL.

You can define a primary key as follows:

  1. Switch to the Indexes tab,
  2. Type a custom name for the PK index (e.g., student_pk) in the Name text box,
  3. Select the student_id column from the Attribute combo-box,
  4. Press the NEW button (right of the Attribute combo-box),
  5. Select the Index is primary key radio button,
  6. Press the Update button,
  7. Press the Ok button (the added primary key will be designated using a key icon).

Thanks.