PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
packages
/
revision
/
database
/
migrations
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateRevisionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::dropIfExists('revisions'); Schema::create('revisions', function (Blueprint $table) { $table->id(); $table->string('revisionable_type'); $table->integer('revisionable_id'); $table->integer('user_id')->nullable(); $table->string('key'); $table->text('old_value')->nullable(); $table->text('new_value')->nullable(); $table->timestamps(); $table->index(['revisionable_id', 'revisionable_type']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('revisions'); } }
[+]
..
[-] 2013_04_09_062329_create_revisions_table.php
[edit]