error: multiple primary keys for table "event_item_price" are not allowed
When wanting to create a composite primary key in my PG table i get an error when doing a drizzle kit push:
3 Replies
It generates to this .sql:
Did you previously have a primary key there that you didn't remove or something? Try starting with a fresh DB and recreate your migrations unless this is a production DB or something.
Or if you have access to the DB, inspect the table and see if there's an existing primary key then delete it.
I deleted the table on the database and now it worked! Thank you!