Add event action storage. Closes #2344
This commit is contained in:
45
database/migrations/2017_02_03_222218_CreateActionsTable.php
Normal file
45
database/migrations/2017_02_03_222218_CreateActionsTable.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Alt Three Services Limited
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateActionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('actions', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('class_name');
|
||||
$table->bigInteger('user_id')->unsigned()->index();
|
||||
$table->string('username');
|
||||
$table->string('information')->nullable();
|
||||
$table->string('description');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('actions');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user