summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-17 01:30:10 +0200
committermsquare <msquare@notrademark.de>2018-10-31 13:43:23 +0100
commita2aaba9cab6b7bdf755a023ed2503cf8cf46925a (patch)
tree04275448599cc8ffaf908b3d7fcc984d822f6a17 /db
parentd7aea575ff77cd37c326511e7ac5fe49067c63ad (diff)
User: Bugfixes & code cleanup
Diffstat (limited to 'db')
-rw-r--r--db/migrations/2018_10_01_000000_create_users_tables.php4
-rw-r--r--db/migrations/ChangesReferences.php1
2 files changed, 3 insertions, 2 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 b9429a2d..55ee382e 100644
--- a/db/migrations/2018_10_01_000000_create_users_tables.php
+++ b/db/migrations/2018_10_01_000000_create_users_tables.php
@@ -102,7 +102,7 @@ class CreateUsersTables extends Migration
$user->save();
$contact = new Contact([
- 'dect' => ($data->DECT && $data->DECT != '-') ? $data->DECT : null,
+ 'dect' => $data->DECT ? $data->DECT : null,
'mobile' => $data->Handy ?: ($data->Telefon ?: null),
]);
$contact->user()
@@ -170,7 +170,7 @@ class CreateUsersTables extends Migration
public function down()
{
$this->schema->create('User', function (Blueprint $table) {
- $table->increments('UID');
+ $table->integer('UID', true, false);
$table->string('Nick', 23)->unique()->default('');
$table->string('Name', 23)->nullable();
diff --git a/db/migrations/ChangesReferences.php b/db/migrations/ChangesReferences.php
index d50f552e..6bdd187d 100644
--- a/db/migrations/ChangesReferences.php
+++ b/db/migrations/ChangesReferences.php
@@ -3,6 +3,7 @@
namespace Engelsystem\Migrations;
use Illuminate\Database\Schema\Blueprint;
+use stdClass;
trait ChangesReferences
{