整理:合并零散迁移文件,36个简化为24个纯建表迁移
- users 表:吸收 s_color类型变更/sign/question/answer/vip_level_id/has_received_new_gift - rooms 表:吸收 visit_num、announcement - sysparam 表:吸收全部 seed(99级经验/权限等级/钓鱼/魅力/排行榜,直接写最终值) - 新增 create_shop_tables(shop_items+user_purchases+username_blacklist+默认商品) - 新增 create_user_currency_logs_table(积分流水表含完整索引) - 删除 14 个已吸收的 add_column / seed 零散迁移
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('actions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('act_name', 50)->unique()->comment('动作名称');
|
||||
$table->string('alias', 50)->nullable()->comment('动作别名');
|
||||
$table->string('toall', 200)->nullable()->comment('对所有人表现');
|
||||
$table->string('toself', 200)->nullable()->comment('对自己的表现');
|
||||
$table->string('toother', 200)->nullable()->comment('对其他人的表现');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('actions');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user