Add Checkin_email to Catergories Table

This commit is contained in:
madd15
2015-07-24 10:20:50 +09:30
parent e779bf52d1
commit f154692dad
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddCheckinEmailToCategoryTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('categories', function ($table) {
$table->boolean('checkin_email')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('categories', function ($table) {
$table->dropColumn('checkin_email');
});
}
}