Skip to content

Commit

Permalink
Patch to feature 2.2
Browse files Browse the repository at this point in the history
NOTE: set api_key_id to nullable to fix issues regarding `SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails` errors
  • Loading branch information
awkwardusername committed May 3, 2015
1 parent 64a361f commit 565562e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function up()

Schema::create('api_logs', function (Blueprint $table) {
$table->increments('id');
$table->integer('api_key_id')->unsigned();
$table->integer('api_key_id', false, true)->nullable();
$table->string('route', 150);
$table->string('method', 6);
$table->text('params');
Expand Down

0 comments on commit 565562e

Please sign in to comment.