Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Add 5.8 support for Shinobi 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed May 21, 2019
1 parent 9b5e60f commit 2f34981
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 7 deletions.
11 changes: 4 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@
}],
"require": {
"php": ">=5.6.4",
"illuminate/database": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*",
"illuminate/support": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*",
"illuminate/filesystem": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*",
"illuminate/config": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*"
"illuminate/database": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/support": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/filesystem": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/config": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*"
},
"autoload": {
"psr-4": {
"Caffeinated\\Shinobi\\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "4.0-dev"
},
"laravel": {
"providers": [
"Caffeinated\\Shinobi\\ShinobiServiceProvider"
Expand Down
48 changes: 48 additions & 0 deletions migrations/2019_05_19_000000_update_shinobi_integer_columns.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UpdateShinobiIntegerColumns extends Migration
{
public function up()
{
Schema::table('roles', function (Blueprint $table) {
$table->bigIncrements('id')->change();
});

Schema::table('role_user', function (Blueprint $table) {
$table->bigIncrements('id')->change();
$table->unsignedBigInteger('role_id')->change();
$table->unsignedBigInteger('user_id')->change();
});

Schema::table('permissions', function (Blueprint $table) {
$table->bigIncrements('id')->change();
});

Schema::table('permission_role', function (Blueprint $table) {
$table->bigIncrements('id')->change();
$table->unsignedBigInteger('permission_id')->change();
$table->unsignedBigInteger('role_id')->change();
});

Schema::table('permission_user', function (Blueprint $table) {
$table->bigIncrements('id')->change();
$table->unsignedBigInteger('permission_id')->change();
$table->unsignedBigInteger('user_id')->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
// Schema::drop('permission_user');
}

}

0 comments on commit 2f34981

Please sign in to comment.