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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< ? php
use Illuminate\Database\Migrations\Migration ;
use Illuminate\Database\Schema\Blueprint ;
use Illuminate\Support\Facades\Schema ;
class CreateAdverseTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up ()
{
Schema :: create ( 'adverse' , function ( Blueprint $table ) {
$table -> id ();
# Columns: 相关项目、相关订单、不良事件类型、描述、解决时间、解决人、解决状态、解决结果描述
$table -> integer ( 'project_id' ) -> nullable ();
$table -> integer ( 'order_id' ) -> nullable ();
$table -> string ( 'type' ) -> nullable ();
$table -> string ( 'description' ) -> nullable ();
$table -> string ( 'solved_at' ) -> nullable ();
$table -> string ( 'solved_by' ) -> nullable ();
$table -> string ( 'solved_status' ) -> nullable ();
$table -> string ( 'solved_result' ) -> nullable ();
$table -> timestamps ();
$table -> softDeletes ();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down ()
{
Schema :: dropIfExists ( 'adverse' );
}
}