parent
bb403e6f5d
commit
c888a9ad58
@ -0,0 +1,31 @@
|
||||
<?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('employee_participations', function (Blueprint $table) {
|
||||
$table->integer('course_id')->nullable()->comment('课程ID')->after('course_type_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('employee_participations', function (Blueprint $table) {
|
||||
$table->dropColumn('course_id');
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
Reference in new issue