Skip to content

Commit

Permalink
tweaked setup
Browse files Browse the repository at this point in the history
  • Loading branch information
franzose committed Feb 3, 2015
1 parent 57468cd commit ce8b630
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ public function up()
Schema::create('entities_closure', function(Blueprint $table)
{
$table->increments('ctid');
$table->integer('ancestor');
$table->integer('descendant');
$table->integer('depth');
$table->unsignedInteger('ancestor');
$table->unsignedInteger('descendant');
$table->unsignedInteger('depth');

$table->foreign('ancestor')->references('id')->on('entities')->onDelete('cascade')->onUpdate('cascade');
$table->foreign('descendant')->references('id')->on('entities')->onDelete('cascade')->onUpdate('cascade');

$table->engine = 'InnoDB';
});
}

Expand Down

0 comments on commit ce8b630

Please sign in to comment.