summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
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
{