parent
c4dc2d5561
commit
6fab6e2757
@ -1,39 +0,0 @@
|
|||||||
<?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::table('course_contents', function (Blueprint $table) {
|
|
||||||
$table->string('course_content_evaluation_title')->nullable()->comment('问卷标题');
|
|
||||||
// 问卷描述
|
|
||||||
$table->string('course_content_evaluation_desc')->nullable()->comment('问卷描述');
|
|
||||||
$table->string('course_content_evaluation_type_id')->nullable()->comment('问卷类型id');
|
|
||||||
// 开始时间
|
|
||||||
$table->string('course_content_evaluation_start_time')->nullable()->comment('问卷开始时间');
|
|
||||||
// 截止时间
|
|
||||||
$table->string('course_content_evaluation_end_time')->nullable()->comment('问卷截止时间');
|
|
||||||
$table->string('course_content_evaluation_status')->nullable()->default(0)->comment('问卷状态0未发布1已发布');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reverse the migrations.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function down()
|
|
||||||
{
|
|
||||||
Schema::table('course_contents', function (Blueprint $table) {
|
|
||||||
//
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@ -0,0 +1,40 @@
|
|||||||
|
<?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::create('course_content_evaluations', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('title')->nullable()->comment('问卷标题');
|
||||||
|
// 问卷描述
|
||||||
|
$table->string('desc')->nullable()->comment('问卷描述');
|
||||||
|
$table->string('type_id')->nullable()->comment('问卷类型id');
|
||||||
|
// 开始时间
|
||||||
|
$table->string('start_time')->nullable()->comment('问卷开始时间');
|
||||||
|
// 截止时间
|
||||||
|
$table->string('end_time')->nullable()->comment('问卷截止时间');
|
||||||
|
$table->string('status')->nullable()->default(0)->comment('问卷状态0未发布1已发布');
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('course_content_evaluations');
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Reference in new issue