Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2014_10_12_000000_create_users_table.php
Show All 16 Lines | public function up() | ||||
Schema::create( | Schema::create( | ||||
'users', | 'users', | ||||
function (Blueprint $table) { | function (Blueprint $table) { | ||||
$table->bigInteger('id'); | $table->bigInteger('id'); | ||||
$table->string('email')->unique(); | $table->string('email')->unique(); | ||||
$table->string('password')->nullable(); | $table->string('password')->nullable(); | ||||
$table->string('password_ldap')->nullable(); | $table->string('password_ldap')->nullable(); | ||||
$table->smallinteger('status'); | $table->smallinteger('status'); | ||||
$table->timestamps(); | $table->timestamp('created_at')->useCurrent(); | ||||
$table->timestamp('updated_at')->useCurrent(); | |||||
$table->primary('id'); | $table->primary('id'); | ||||
} | } | ||||
); | ); | ||||
} | } | ||||
/** | /** | ||||
* Reverse the migrations. | * Reverse the migrations. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function down() | public function down() | ||||
{ | { | ||||
Schema::dropIfExists('users'); | Schema::dropIfExists('users'); | ||||
} | } | ||||
} | } |