欢迎各位兄弟 发布技术文章
这里的技术是共享的
<?php
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ModifyAcceptNumberAndEmainingNumberAndYearToUserinfosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('userinfos', function (Blueprint $table) { // $table->integer('userinfo_accept_number')->unsigned()->change(); $table->integer('userinfo_emaining_number')->unsigned()->change(); $table->integer('userinfo_year')->unsigned()->change(); // $table->timestamp('userinfo_end_day')->change(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('userinfos', function (Blueprint $table) { // $table->string('userinfo_accept_number'); $table->string('userinfo_emaining_number'); $table->string('userinfo_year'); // $table->dropColumn('userinfo_end_day'); }); } }