123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateExamargsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('examargs', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('exam_id')->comment("考试id");
- $table->integer('exam_name')->comment("试卷名称");
- $table->time("exam_time")->comment('考试用时');
- $table->dateTime("exam_start")->comment('考试开始时间');
- $table->dateTime("exam_end")->comment('考试开始时间');
- $table->text("sclass_id")->comment("班级id");
- $table->int("grade_id")->comment("班级id");
- $table->text("school_id")->comment("班级id");
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('examargs');
- }
- }
|