Files
cachet-docker/database/migrations/2016_10_30_174410_CreateScheduleComponentsTable.php
James Brooks a2cded299d New migrations
2016-10-30 21:00:06 +00:00

44 lines
1004 B
PHP

<?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 CreateScheduleComponentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('schedule_components', function (Blueprint $table) {
$table->increments('id');
$table->integer('schedule_id')->unsigned();
$table->integer('component_id')->unsigned();
$table->tinyInteger('component_status')->unsigned();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('schedule_components');
}
}