| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CreatePcmmPermissionsTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('pcmm_permissions', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('menu_id')->unsigned()->index(); |
||
| 19 | $table->string('namespace', 255)->index(); |
||
| 20 | $table->string('controller', 255)->index(); |
||
| 21 | $table->enum('method', ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'])->index(); |
||
| 22 | $table->string('action', 255)->index(); |
||
| 23 | $table->boolean('allowed')->default(true); |
||
| 24 | $table->timestamps(); |
||
| 25 | |||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Reverse the migrations. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function down() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |