This commit is contained in:
hashbro
2026-08-09 02:08:42 +08:00
parent 74a67c3900
commit 5c7600744e
24 changed files with 1510 additions and 70 deletions
@@ -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']);
});
}
};