SIGN IN SIGN UP
drawdb-io / drawdb UNCLAIMED

Free, simple, and intuitive online database diagram editor and SQL generator.

0 0 85 JavaScript

Deselect UNIQUE checkbox in Primary Key of a new table, because primary key already has a unique index by default. (#981)

When creating a New Table in MySQL or MariaDB database, In the primary key (id) column, the UNIQUE checkbox is automatically getting selected. Because of this when exporting SQL code the UNIQUE keyword is present on the primary key column. So while running the SQL code in MySQL, Two index is getting created for the primary key column. Primary key already has an index, and then because UNIQUE is auto-selected and exported in the SQL code on the primary key, another UNIQUE index is getting created in the DATABASE. Which is wrong and effects performance. Please remove auto-selected UNIQUE checkbox function from the primary key (id) column.
N
Netluke Webs committed
a913140e6f46638b93b8a9f93c3e2ef574b4e314
Parent: c9b3164
Committed by GitHub <noreply@github.com> on 4/1/2026, 6:46:30 AM