Files
cachet-docker/app/database/migrations/2014_12_01_121947_AlterTableIncidentsRenameComponentColumn.php
Graham Campbell 540f9aa538 CS fixes
2014-12-28 16:07:18 +00:00

32 lines
666 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AlterTableIncidentsRenameComponentColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('incidents', function (Blueprint $table) {
$table->renameColumn('component', 'component_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('incidents', function (Blueprint $table) {
$table->renameColumn('component_id', 'component');
});
}
}