From 99126cab0c1d272d86be175923583105eee549d3 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 30 Dec 2018 15:10:04 +0100 Subject: migrations: formatting --- db/migrations/2018_10_01_000000_create_users_tables.php | 2 +- db/migrations/2018_12_27_000000_fix_missing_arrival_dates.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'db') 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 d6778c52..d8422ca0 100644 --- a/db/migrations/2018_10_01_000000_create_users_tables.php +++ b/db/migrations/2018_10_01_000000_create_users_tables.php @@ -193,7 +193,7 @@ class CreateUsersTables extends Migration $table->tinyInteger('color')->default(10)->nullable(); $table->char('Sprache', 64)->nullable(); $table->char('Menu', 1)->default('L'); - $table->integer('lastLogIn'); + $table->integer('lastLogIn')->nullable(); $table->dateTime('CreateDate')->default('0001-01-01 00:00:00'); $table->char('Art', 30)->nullable(); $table->text('kommentar')->nullable(); diff --git a/db/migrations/2018_12_27_000000_fix_missing_arrival_dates.php b/db/migrations/2018_12_27_000000_fix_missing_arrival_dates.php index b932158c..4d939bb8 100644 --- a/db/migrations/2018_12_27_000000_fix_missing_arrival_dates.php +++ b/db/migrations/2018_12_27_000000_fix_missing_arrival_dates.php @@ -13,7 +13,7 @@ class FixMissingArrivalDates extends Migration public function up() { $states = State::whereArrived(true)->whereArrivalDate(null)->get(); - foreach($states as $state) { + foreach ($states as $state) { $state->arrival_date = $state->user->personalData->planned_arrival_date; $state->save(); } @@ -23,5 +23,6 @@ class FixMissingArrivalDates extends Migration * Down is not possible and not needed since this is a bugfix. */ public function down() - {} + { + } } -- cgit v1.2.3-54-g00ecf