up()
up()
Run the migrations.
<?php
/**
* JingYao-backend
*
* @link https://gitee.com/wang-zhihui-release/jingyao-backend
* @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSuccessiveNotInPlaceDaysToUserProfile extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('user_profiles', function (Blueprint $table) {
$table->integer('successive_not_in_village_days')->default(0)->comment('连续不在村里的天数');
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::table('user_profiles', function (Blueprint $table) {
$table->dropColumn('successive_not_in_village_days');
});
}
}