Files
cachet-docker/app/database/migrations/2014_11_16_224719_CreateIncidentsTable.php
2014-11-16 23:24:30 +00:00

41 lines
713 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
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', 1)->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');
}
}