We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 6-31 (lines=26) @@ | ||
| 3 | use Illuminate\Database\Schema\Blueprint; |
|
| 4 | use Illuminate\Database\Migrations\Migration; |
|
| 5 | ||
| 6 | class AddSlugToCategoriesTable extends Migration |
|
| 7 | { |
|
| 8 | /** |
|
| 9 | * Run the migrations. |
|
| 10 | * |
|
| 11 | * @return void |
|
| 12 | */ |
|
| 13 | public function up() |
|
| 14 | { |
|
| 15 | Schema::table('categories', function (Blueprint $table) { |
|
| 16 | $table->string('slug')->unique()->after('name'); |
|
| 17 | }); |
|
| 18 | } |
|
| 19 | ||
| 20 | /** |
|
| 21 | * Reverse the migrations. |
|
| 22 | * |
|
| 23 | * @return void |
|
| 24 | */ |
|
| 25 | public function down() |
|
| 26 | { |
|
| 27 | Schema::table('categories', function (Blueprint $table) { |
|
| 28 | $table->dropColumn('slug'); |
|
| 29 | }); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 6-31 (lines=26) @@ | ||
| 3 | use Illuminate\Database\Schema\Blueprint; |
|
| 4 | use Illuminate\Database\Migrations\Migration; |
|
| 5 | ||
| 6 | class AddSlugToTagsTable extends Migration |
|
| 7 | { |
|
| 8 | /** |
|
| 9 | * Run the migrations. |
|
| 10 | * |
|
| 11 | * @return void |
|
| 12 | */ |
|
| 13 | public function up() |
|
| 14 | { |
|
| 15 | Schema::table('tags', function (Blueprint $table) { |
|
| 16 | $table->string('slug')->unique()->after('name'); |
|
| 17 | }); |
|
| 18 | } |
|
| 19 | ||
| 20 | /** |
|
| 21 | * Reverse the migrations. |
|
| 22 | * |
|
| 23 | * @return void |
|
| 24 | */ |
|
| 25 | public function down() |
|
| 26 | { |
|
| 27 | Schema::table('tags', function (Blueprint $table) { |
|
| 28 | $table->dropColumn('slug'); |
|
| 29 | }); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||