mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
add uid starts when install
This commit is contained in:
@@ -16,8 +16,12 @@ class CreateUsersTable extends Migration
|
||||
if (Schema::hasTable('users')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id('id')->startingValue(10001);
|
||||
$uidStarts = env('UID_STARTS');
|
||||
if (!is_numeric($uidStarts) || $uidStarts < 1) {
|
||||
$uidStarts = 10001;
|
||||
}
|
||||
Schema::create('users', function (Blueprint $table) use ($uidStarts) {
|
||||
$table->id('id')->startingValue($uidStarts);
|
||||
$table->string('username', 40)->default('')->unique('username');
|
||||
$table->string('passhash', 32)->default('');
|
||||
$table->binary('secret');
|
||||
|
||||
Reference in New Issue
Block a user