@ -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();
@ -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()
{}