invoiceninja/database/migrations/2015_04_13_100333_add_notify_approved.php
2015-04-13 15:00:31 +03:00

35 lines
571 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddNotifyApproved extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function($table)
{
$table->boolean('notify_approved')->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function($table)
{
$table->dropColumn('notify_approved');
});
}
}