File "2015_08_01_104512_create_log_table.php"
Full path: /home/qooetu/costes.qooetu.com/database/migrations/2015_08_01_104512_create_log_table.php
File
size: 844 B (844 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateLogTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('logs', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->nullable();
$table->string('owner_type');
$table->integer('owner_id');
$table->text('old_value')->nullable();
$table->text('new_value')->nullable();
$table->string('type');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('logs');
}
}