| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class ModifyRolesAndPermissionsTablesAddTitleColumn extends BaseMigration |
||
| 7 | { |
||
| 8 | public function up() |
||
| 12 | } |
||
| 13 | |||
| 14 | public function down() |
||
| 18 | } |
||
| 19 | |||
| 20 | protected function addTitleColumn(string $table): void |
||
| 21 | { |
||
| 22 | $this->table($table, function (Blueprint $table) { |
||
| 23 | $table->string('title')->nullable()->after('slug'); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function dropTitleColumn(string $table): void |
||
| 31 | }); |
||
| 32 | } |
||
| 34 |