diff options
Diffstat (limited to 'database/migrations')
| -rw-r--r-- | database/migrations/2016_09_05_230150_add_isadmin_to_users.php | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/database/migrations/2016_09_05_230150_add_isadmin_to_users.php b/database/migrations/2016_09_05_230150_add_isadmin_to_users.php new file mode 100644 index 0000000..e548420 --- /dev/null +++ b/database/migrations/2016_09_05_230150_add_isadmin_to_users.php @@ -0,0 +1,28 @@ +<?php + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class AddIsadminToUsers extends Migration { +	/** +	 * Run the migrations. +	 * +	 * @return void +	 */ +	public function up() { +		Schema::table('users', function (Blueprint $table) { +			$table->boolean('isadmin')->default(false); +		}); +	} + +	/** +	 * Reverse the migrations. +	 * +	 * @return void +	 */ +	public function down() { +		Schema::table('users', function (Blueprint $table) { +			$table->dropColumn('isadmin'); +		}); +	} +} | 
