diff --git a/database/migrations/2022_06_29_135450_create_plans_table.php b/database/migrations/2022_06_29_135450_create_plans_table.php index 3be4efc..f447088 100644 --- a/database/migrations/2022_06_29_135450_create_plans_table.php +++ b/database/migrations/2022_06_29_135450_create_plans_table.php @@ -25,7 +25,6 @@ return new class extends Migration $table->json('packet1_options'); $table->json('packet2_options'); $table->json('packet3_options'); - $table->string('slug'); $table->timestamps(); }); } diff --git a/database/migrations/2023_12_20_105039_add_slug_to_plan.php b/database/migrations/2023_12_20_105039_add_slug_to_plan.php new file mode 100644 index 0000000..5c48db4 --- /dev/null +++ b/database/migrations/2023_12_20_105039_add_slug_to_plan.php @@ -0,0 +1,28 @@ +string('slug'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('plans', function (Blueprint $table) { + $table->dropColumn('slug'); + }); + } +};