sqlite driver got error table "xxx" has more than one primary key
#6762
Labels
type:question
general questions
table "xxx" has more than one primary key
#6762
Your Question
Got error saying
table "users" has more than one primary key
Here is my code
Here is my
go.mod
The Model structure above works fine when I migrate using the PostgreSQL driver. I don't know if there is any special config for the SQLite driver to work. Please help!
The document you expected this should be explained
I don't know if this is a real problem or just my mis-config.
But if there are some special configs for SQLite driver to work, this should be included in either
Migration
orDrivers
docs.Expected answer
I appreciate your answer, please let me know if I have any mistakes!
The text was updated successfully, but these errors were encountered: