12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateContractLogsTable.
- */
- class CreateContractLogsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('contract_logs', function(Blueprint $table) {
- $table->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');
- }
- }
|