You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Uncaught Error: Multiple primary key defined
throw new Error(error.message);
^
at PoolConnection.nextPacket (https://deno.land/x/mysql@v2.11.0/src/connection.ts:216:13)
at async PoolConnection.execute (https://deno.land/x/mysql@v2.11.0/src/connection.ts:271:21)
at async https://deno.land/x/mysql@v2.11.0/src/client.ts:97:14
at async Client.useConnection (https://deno.land/x/mysql@v2.11.0/src/client.ts:107:14)
at async Client.execute (https://deno.land/x/mysql@v2.11.0/src/client.ts:96:12)
at async MySQLConnector.query (https://deno.land/x/denodb@v1.2.0/lib/connectors/mysql-connector.ts:80:22)
at async Database.query (https://deno.land/x/denodb@v1.2.0/lib/database.ts:240:21)
at async Function.createTable (https://deno.land/x/denodb@v1.2.0/lib/model.ts:172:5)
at async Database.sync (https://deno.land/x/denodb@v1.2.0/lib/database.ts:210:7)
I can't understand why as I don't seem to have "multiple primary keys defined", only 1 per table.
The text was updated successfully, but these errors were encountered:
Hi,
I'm facing a little issue while attempting to sync db.
this is my code, it works when creating the tables, but when they already exists it fails:
And i'm having that error:
I can't understand why as I don't seem to have "multiple primary keys defined", only 1 per table.
The text was updated successfully, but these errors were encountered: