Skip to content

Commit

Permalink
Merge pull request #35 from djoudi/laravel-5
Browse files Browse the repository at this point in the history
add Support laravel 6.0
  • Loading branch information
rtconner authored Sep 22, 2019
2 parents d3b6168 + e2fd9b1 commit 4f353f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
.settings
.buildpath
composer.lock
/vendor
/vendor
.phpintel/*
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
],
"require": {
"php": ">=5.5.0",
"illuminate/database": ">=5.0",
"illuminate/support": ">=5.0"
"illuminate/database": ">=5.0|^6.0",
"illuminate/support": ">=5.0|^6.0"
},
"require-dev": {
"orchestra/testbench": "~3.0",
"phpunit/phpunit": "~4.0",
"phpunit/phpunit": "~4.0|~8.0",
"mockery/mockery": "~0.9"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions migrations/2016_02_07_000000_create_likeable_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CreateLikeableTables extends Migration
public function up()
{
Schema::create('likeable_likes', function(Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('likeable_id', 36);
$table->string('likeable_type', 255);
$table->string('user_id', 36)->index();
Expand All @@ -17,10 +17,10 @@ public function up()
});

Schema::create('likeable_like_counters', function(Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('likeable_id', 36);
$table->string('likeable_type', 255);
$table->unsignedInteger('count')->default(0);
$table->unsignedBigInteger('count')->default(0);
$table->unique(['likeable_id', 'likeable_type'], 'likeable_counts');
});

Expand Down
2 changes: 1 addition & 1 deletion tests/CommonUseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function getEnvironmentSetUp($app)
]);

\Schema::create('books', function ($table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('name');
$table->timestamps();
});
Expand Down

0 comments on commit 4f353f9

Please sign in to comment.