diff options
| author | Camil Staps | 2016-09-06 01:05:38 +0200 | 
|---|---|---|
| committer | Camil Staps | 2016-09-06 01:05:38 +0200 | 
| commit | 1ae38f7f50a31502909c91826488e6181ce07beb (patch) | |
| tree | 12f70398cb82e95dab956a5279346163b359aa68 /database | |
| parent | Clearer training page (diff) | |
Added isadmin to users
Diffstat (limited to 'database')
| -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'); +		}); +	} +} | 
