admin
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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('admins', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('status')->default(1)->after('is_super');
|
||||
$table->unsignedTinyInteger('google_auth_open')->default(0)->after('status');
|
||||
$table->string('google_secret', 64)->nullable()->after('google_auth_open');
|
||||
$table->string('last_ip', 45)->nullable()->after('google_secret');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('admins', function (Blueprint $table) {
|
||||
$table->dropColumn(['status', 'google_auth_open', 'google_secret', 'last_ip']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user