forked from XiaoLFeng/XF_Index
Modify: 数据库迁移
添加缺少组件 修改: - 2023_06_13_060913_update_info_table.php - 2023_07_21_063430_create_sponsor_type_table.php Signed-off-by: XiaoLFeng <gm@x-lf.cn>
This commit is contained in:
parent
cbe3c0b0c5
commit
566773e05b
|
@ -38,6 +38,11 @@ public function up()
|
||||||
DB::table('info')->insert(['value' => 'applicationRule', 'created_at' => date('Y-m-d H:i:s')]);
|
DB::table('info')->insert(['value' => 'applicationRule', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
DB::table('info')->insert(['value' => 'applicationInfo', 'created_at' => date('Y-m-d H:i:s')]);
|
DB::table('info')->insert(['value' => 'applicationInfo', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
DB::table('info')->insert(['value' => 'email', 'created_at' => date('Y-m-d H:i:s')]);
|
DB::table('info')->insert(['value' => 'email', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
|
DB::table('info')->insert(['value' => 'sponsorPayCodeType', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
|
DB::table('info')->insert(['value' => 'sponsorPayAll', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
|
DB::table('info')->insert(['value' => 'sponsorInfo', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
|
DB::table('info')->insert(['value' => 'afadianUserId', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
|
DB::table('info')->insert(['value' => 'afadianToken', 'created_at' => date('Y-m-d H:i:s')]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,9 @@ public function up()
|
||||||
Schema::create('sponsor_type', function (Blueprint $table) {
|
Schema::create('sponsor_type', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name')->comment('赞助类型名称');
|
$table->string('name')->comment('赞助类型名称');
|
||||||
|
$table->text('url')->comment('图片或跳转地址');
|
||||||
$table->boolean('include')->default(true)->comment('是否计入总数');
|
$table->boolean('include')->default(true)->comment('是否计入总数');
|
||||||
|
$table->boolean('link')->default(false)->comment('是否是跳转链接');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user