I am using laravel's artisan command to create a database table with a foreign key. I'm getting the following error when I run the php artisan migrate
command:
SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table '#sql-73_ca' (SQL: alter table
table_1
add constrainttable_1_table_1_sid_foreign
foreign key
(table_1_sid
) referencestable_2
(id
))
Also, I don't have a table '#sql-73_ca'