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.

44 lines
1.4 KiB

3 years ago
<?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('visits', function (Blueprint $table) {
$table->integer('user_id')->comment('用户id')->nullable();
$table->string('code')->comment('编号')->nullable();
$table->string('accept_admin_sign')->comment('被访人签字图片id')->nullable();
$table->json('file')->nullable()->comment('附件id数组');
$table->string('accept_goods_admin_id')->comment('收货人id')->nullable();
$table->date('work_start_time')->comment('施工开始时间')->nullable();
$table->date('work_end_time')->comment('施工结束时间')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('visits', function (Blueprint $table) {
$table->dropColumn('user_id');
$table->dropColumn('code');
$table->dropColumn('accept_admin_sign');
$table->dropColumn('file');
$table->dropColumn('accept_goods_admin_id');
$table->dropColumn('work_start_time');
$table->dropColumn('work_end_time');
});
}
};