You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
830 B

6 months ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
5 months ago
return new class extends Migration {
6 months ago
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('calendars', function (Blueprint $table) {
$table->id();
5 months ago
// 数据类型
$table->tinyInteger('type')->nullable()->comment('数据类型1课程2自定义事件');
// 日期
$table->date('date')->nullable()->comment('日期');
6 months ago
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('calendars');
}
};