increments('id'); $table->integer('contract_id')->index('contract_id')->comment('合约ID'); $table->integer('m_id')->index('m_id')->comment('会员ID'); $table->string('msg')->comment('日志说明'); $table->text('data')->comment('相关数据'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('contract_logs'); } }