| @@ 15-21 (lines=7) @@ | ||
| 12 | */ |
|
| 13 | public function up() |
|
| 14 | { |
|
| 15 | Schema::create('roles', function (Blueprint $table) { |
|
| 16 | $table->increments('id'); |
|
| 17 | $table->string('name'); |
|
| 18 | $table->string('label')->nullable(); |
|
| 19 | $table->timestamps(); |
|
| 20 | $table->engine = 'InnoDB'; |
|
| 21 | }); |
|
| 22 | ||
| 23 | Schema::create('permissions', function (Blueprint $table) { |
|
| 24 | $table->increments('id'); |
|
| @@ 23-29 (lines=7) @@ | ||
| 20 | $table->engine = 'InnoDB'; |
|
| 21 | }); |
|
| 22 | ||
| 23 | Schema::create('permissions', function (Blueprint $table) { |
|
| 24 | $table->increments('id'); |
|
| 25 | $table->string('name'); |
|
| 26 | $table->string('label')->nullable(); |
|
| 27 | $table->timestamps(); |
|
| 28 | $table->engine = 'InnoDB'; |
|
| 29 | }); |
|
| 30 | ||
| 31 | Schema::create('permission_role', function (Blueprint $table) { |
|
| 32 | $table->integer('permission_id')->unsigned(); |
|