Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
incorrect sqlite syntax for composite primary key #3500
Sqlite seems to require an attribute style syntax for creating a composite (multi-column) primary key. Here is the syntax generated:
Steps to reproduce
from the table structure view, select two columns to be primary key.
macOS 10.14.3 (Mojave)
Instead of marking two columns as primary key, you should create normal (not PK) columns and then on the bottom of Structure tab there is frame for table's global constraints, where you can create PK for multiple columns.
This way you will generate proper DDL.
I will keep this issue to track a change, where SQLiteStudio will not allow you yo select 2 columns as PK and will instruct you to do this the way I just described above.