Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlstate[23000]: integrity constraint violation: 1451 cannot delete or update a parent row:

Schema::disableForeignKeyConstraints();
Schema::dropIfExists('tablename');
Schema::enableForeignKeyConstraints();
 
PREVIOUS NEXT
Tagged: #integrity #constraint #delete #update #parent
ADD COMMENT
Topic
Name
7+8 =