<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Improve primary key creation when creating/importing a table"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=140267">140267</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Improve primary key creation when creating/importing a table
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0.0.3 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Base
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>michael@vonglasow.com
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>