Files
cachet-docker/app/database/migrations/2014_12_01_121947_AlterTableIncidentsRenameComponentColumn.php
2015-01-01 13:53:31 +00:00

33 lines
705 B
PHP

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