feat: 添加统一数据库初始化命令,简化数据库迁移和种子填充流程;新增基础和演示数据填充器
This commit is contained in:
@@ -11,27 +11,10 @@ final class DatabaseSeeder extends Seeder
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
// 全环境可用的基础枚举数据
|
||||
$this->call([
|
||||
CurrencySeeder::class,
|
||||
PlayTypeSeeder::class,
|
||||
OperationalConfigV1Seeder::class,
|
||||
OddsPrizeScopesBackfillSeeder::class,
|
||||
/** 对齐玩法目录与 active/draft 配置行(修复历史子集种子) */
|
||||
PlayOperationalAlignmentSeeder::class,
|
||||
LotterySettingsSeeder::class,
|
||||
]);
|
||||
$this->call([FoundationSeeder::class]);
|
||||
|
||||
// 演示管理员 + 演示玩家 + 演示期号:**勿在生产库执行**(或确保 APP_ENV≠production)
|
||||
if (! app()->environment('production')) {
|
||||
$this->call([
|
||||
AdminRbacAndUserSeeder::class,
|
||||
DevPlayerAndWalletSeeder::class,
|
||||
DrawDemoSeeder::class,
|
||||
// 仪表盘:对齐「大厅 resolve 当期」+ 多场景演示期(-996 settled / -995 pending)
|
||||
DashboardHallFixtureSeeder::class,
|
||||
DashboardSecondaryScenariosSeeder::class,
|
||||
]);
|
||||
$this->call([LocalDemoSeeder::class]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user