feat(admin): 增加玩家密码管理与角色边界
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('players', function (Blueprint $table): void {
|
||||
$table->unsignedInteger('native_token_version')
|
||||
->default(0)
|
||||
->after('login_locked_until');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('players', function (Blueprint $table): void {
|
||||
$table->dropColumn('native_token_version');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use App\Support\InvalidPlatformAgentRoleCleanup;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
InvalidPlatformAgentRoleCleanup::run();
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
// 非法的平台账号代理角色绑定无法可靠还原,回滚时保持清理结果。
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user