Feat: Adding Migration for otp to lunar_customers

This commit is contained in:
2026-07-03 17:16:30 +03:00
parent ebe905acfa
commit ab213f69ec
@@ -0,0 +1,23 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('lunar_customers', function (Blueprint $table) {
$table->string('otp_code', 6)->nullable()->after('meta');
$table->timestamp('otp_expires_at')->nullable()->after('otp_code');
});
}
public function down(): void
{
Schema::table('lunar_customers', function (Blueprint $table) {
$table->dropColumn(['otp_code', 'otp_expires_at']);
});
}
};