Feat: Adding Migration for otp to lunar_customers
This commit is contained in:
@@ -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']);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user