Skip to content

Commit

Permalink
update to Laravel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
EcoinTest authored Sep 6, 2019
1 parent acd9599 commit 7db51b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ public function up()
$connection = config('categorizable.connection');

Schema::connection($connection)->create('categories', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('name');

$table->nestedSet();
$table->timestamps();
});

Schema::connection($connection)->create('categorizable', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->unsignedInteger('category_id');
$table->nullableMorphs('categorizable');

Expand Down

0 comments on commit 7db51b5

Please sign in to comment.