Skip to content

Commit

Permalink
Patch to backported feature from v2.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 as described in #48
  • Loading branch information
awkwardusername committed May 3, 2015
1 parent cc2a143 commit d62999f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/2014_06_12_084423_create_api_keys_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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', 50);
$table->string('method', 6);
$table->text('params');
Expand Down

0 comments on commit d62999f

Please sign in to comment.