migrations: formatting

main
Igor Scheller 6 years ago
parent d208cab1ac
commit 99126cab0c

@ -193,7 +193,7 @@ class CreateUsersTables extends Migration
$table->tinyInteger('color')->default(10)->nullable(); $table->tinyInteger('color')->default(10)->nullable();
$table->char('Sprache', 64)->nullable(); $table->char('Sprache', 64)->nullable();
$table->char('Menu', 1)->default('L'); $table->char('Menu', 1)->default('L');
$table->integer('lastLogIn'); $table->integer('lastLogIn')->nullable();
$table->dateTime('CreateDate')->default('0001-01-01 00:00:00'); $table->dateTime('CreateDate')->default('0001-01-01 00:00:00');
$table->char('Art', 30)->nullable(); $table->char('Art', 30)->nullable();
$table->text('kommentar')->nullable(); $table->text('kommentar')->nullable();

@ -13,7 +13,7 @@ class FixMissingArrivalDates extends Migration
public function up() public function up()
{ {
$states = State::whereArrived(true)->whereArrivalDate(null)->get(); $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->arrival_date = $state->user->personalData->planned_arrival_date;
$state->save(); $state->save();
} }
@ -23,5 +23,6 @@ class FixMissingArrivalDates extends Migration
* Down is not possible and not needed since this is a bugfix. * Down is not possible and not needed since this is a bugfix.
*/ */
public function down() public function down()
{} {
}
} }

Loading…
Cancel
Save