diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-30 15:10:04 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-30 15:10:04 +0100 |
commit | 99126cab0c1d272d86be175923583105eee549d3 (patch) | |
tree | 1325b8e9750b169eb21b6a17e45d2da6ea78740f /db | |
parent | d208cab1ac17a958fcd070c67e07b56e6caadff9 (diff) |
migrations: formatting
Diffstat (limited to 'db')
-rw-r--r-- | db/migrations/2018_10_01_000000_create_users_tables.php | 2 | ||||
-rw-r--r-- | db/migrations/2018_12_27_000000_fix_missing_arrival_dates.php | 5 |
2 files changed, 4 insertions, 3 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 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() - {} + { + } } |