summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrations/2018_10_01_000000_create_users_tables.php2
-rw-r--r--db/migrations/2018_12_27_000000_fix_missing_arrival_dates.php5
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()
- {}
+ {
+ }
}