added migration slug plan

This commit is contained in:
2023-12-20 10:56:10 +03:00
parent 04e0bf66ee
commit be84fd983c
2 changed files with 28 additions and 1 deletions

View File

@@ -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();
});
}

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('plans', function (Blueprint $table) {
$table->string('slug');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('plans', function (Blueprint $table) {
$table->dropColumn('slug');
});
}
};