|
|
@@ -0,0 +1,37 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use Illuminate\Database\Migrations\Migration;
|
|
|
+use Illuminate\Database\Schema\Blueprint;
|
|
|
+use Illuminate\Support\Facades\Schema;
|
|
|
+
|
|
|
+return new class extends Migration {
|
|
|
+ /**
|
|
|
+ * Run the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function up()
|
|
|
+ {
|
|
|
+ Schema::dropIfExists('activity_rewards');
|
|
|
+ Schema::create('activity_rewards', function (Blueprint $table) {
|
|
|
+ $table->engine = 'InnoDB';
|
|
|
+ $table->id();
|
|
|
+ $table->string('title', 150)->comment('活动名称');
|
|
|
+ $table->string('sub_title', 150)->comment('副标题');
|
|
|
+ $table->integer('start_time')->comment('开始时间');
|
|
|
+ $table->integer('end_time')->comment('结束时间');
|
|
|
+ $table->string('detail_image')->comment('活动详情图片');
|
|
|
+ $table->timestamps();
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reverse the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function down()
|
|
|
+ {
|
|
|
+ //
|
|
|
+ }
|
|
|
+};
|