Files
cachet-docker/app/database/migrations/2014_11_16_224719_CreateIncidentsTable.php
Graham Campbell 9d8d89248f CS fixes
2014-12-20 21:20:17 +00:00

40 lines
855 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateIncidentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('incidents', function (Blueprint $table) {
$table->increments('id');
$table->tinyInteger('component')->default(1);
$table->string('name');
$table->tinyInteger('status')->default(1);
$table->longText('message');
$table->timestamps();
$table->softDeletes();
$table->index('component');
$table->index('status');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('incidents');
}
}