Fix Unused Migration

This commit is contained in:
2022-07-25 12:28:58 +07:00
parent a59c326926
commit 4599861ef9

View File

@@ -15,8 +15,8 @@ return new class extends Migration
{
Schema::create('member_plans', function (Blueprint $table) {
$table->id();
$table->string('member_id');
$table->string('plan_id');
$table->string('member_id')->index();
$table->string('plan_id')->index();
$table->string('status')->default('active');
$table->dateTime('start')->nullable();
$table->dateTime('end')->nullalbe();
@@ -28,7 +28,7 @@ return new class extends Migration
$table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable();
$table->index(['policy_id', 'member_id']);
$table->index(['member_id', 'plan_id']);
});
}