Remove old 'active' column and replace some references with 'suspended' in place

This commit is contained in:
Dane Everitt 2016-09-01 21:21:01 -04:00
parent 38eae88bd0
commit 8e657a0bf0
5 changed files with 37 additions and 8 deletions

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RemoveActiveColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('servers', function (Blueprint $table) {
$table->dropColumn('active');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('servers', function (Blueprint $table) {
$table->tinyInteger('active')->after('name')->unsigned()->default(0);
});
}
}