Add migration to add maintained and termination_date fields to licenses table

This commit is contained in:
Svpernova09
2014-12-10 07:43:57 -06:00
parent cee966e76e
commit eec36cb13a
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddFieldsMaintainedTermToLicenses extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('licenses', function ($table) {
$table->date('termination_date')->nullable();
$table->boolean('maintained');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('licenses', function ($table) {
$table->dropColumn('termination_date');
$table->dropColumn('maintained');
});
}
}