Files
c-cms-legacy/database/migrations/2018_07_16_222153_create_logs_table.php
Mathieu Lagace 133f430445 3.2.1
2019-09-08 16:43:34 -04:00

38 lines
819 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('logs', function (Blueprint $table) {
$table->increments('id');
$table->string('type');
$table->string('result');
$table->text('event');
$table->integer('user_id');
$table->string('logable_type');
$table->integer('logable_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('logs');
}
}