https://bugs.documentfoundation.org/show_bug.cgi?id=140267

            Bug ID: 140267
           Summary: Improve primary key creation when creating/importing a
                    table
           Product: LibreOffice
           Version: 7.0.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Base
          Assignee: [email protected]
          Reporter: [email protected]

When creating a table in Design view and not setting a column to be the primary
key, Base will ask the user whether they want to create a primary key. IIRC the
same query also appears when importing data into a new table (and in addition
the option to designate a column as the primary key is well hidden). Not sure
how the wizard behaves in this situation.

Answering Yes will add a new column named ID, with an auto-increment value and
designated as the primary key. This is what Microsoft’s Access does, and what
would have made my old database professor cringe.

Suggested improvement: when a user tries to add a new table without a primary
key, give them the following options:

- select an existing column to serve as the primary key (or multiple ones for a
compound primary key)
- add a new column with an auto-incremented value to serve as the primary key
(à la Access)
- proceed without a primary key

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to