summaryrefslogtreecommitdiff
path: root/db/migrations/2018_10_01_000000_create_users_tables.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-07-28 16:26:24 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-07-29 00:58:06 +0200
commitc1f6374f377d7b6d2aeefa464837226279a521a3 (patch)
tree09fca5da559a43a94ea93cf13aeb7696f059e2db /db/migrations/2018_10_01_000000_create_users_tables.php
parent62ed77ab25f8f2cf5103caf572079ebc2b50f6bc (diff)
Migrations: Changed defaults, bug fixes and return object for chaining
Diffstat (limited to 'db/migrations/2018_10_01_000000_create_users_tables.php')
-rw-r--r--db/migrations/2018_10_01_000000_create_users_tables.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/db/migrations/2018_10_01_000000_create_users_tables.php b/db/migrations/2018_10_01_000000_create_users_tables.php
index 52b3658f..5b88511b 100644
--- a/db/migrations/2018_10_01_000000_create_users_tables.php
+++ b/db/migrations/2018_10_01_000000_create_users_tables.php
@@ -36,7 +36,7 @@ class CreateUsersTables extends Migration
});
$this->schema->create('users_personal_data', function (Blueprint $table) {
- $this->referencesUser($table);
+ $this->referencesUser($table, true);
$table->string('first_name', 64)->nullable();
$table->string('last_name', 64)->nullable();
@@ -47,7 +47,7 @@ class CreateUsersTables extends Migration
});
$this->schema->create('users_contact', function (Blueprint $table) {
- $this->referencesUser($table);
+ $this->referencesUser($table, true);
$table->string('dect', 5)->nullable();
$table->string('mobile', 40)->nullable();
@@ -55,7 +55,7 @@ class CreateUsersTables extends Migration
});
$this->schema->create('users_settings', function (Blueprint $table) {
- $this->referencesUser($table);
+ $this->referencesUser($table, true);
$table->string('language', 64);
$table->tinyInteger('theme');
@@ -64,7 +64,7 @@ class CreateUsersTables extends Migration
});
$this->schema->create('users_state', function (Blueprint $table) {
- $this->referencesUser($table);
+ $this->referencesUser($table, true);
$table->boolean('arrived')->default(false);
$table->dateTime('arrival_date')->nullable();
@@ -75,7 +75,7 @@ class CreateUsersTables extends Migration
});
$this->schema->create('password_resets', function (Blueprint $table) {
- $this->referencesUser($table);
+ $this->referencesUser($table, true);
$table->text('token');
@@ -157,8 +157,7 @@ class CreateUsersTables extends Migration
'User',
'UID',
'users',
- 'id',
- 'unsignedInteger'
+ 'id'
);
}