Skip to content

Commit

Permalink
hopefully fix migrations for version such as 3.1.6 (who would still u…
Browse files Browse the repository at this point in the history
…se that anyway?) (#582)
  • Loading branch information
ildyria authored May 21, 2020
1 parent 1ffc225 commit 2dec96d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion database/migrations/2018_08_15_102039_move_albums.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function up()
$album->description = $result->description;
$album->public = $result->public;
$album->visible_hidden = $result->visible;
$album->license = $result->license;
$album->license = $result->license ?? 'none';
$album->created_at = date('Y-m-d H:i:s', $result->sysstamp);
$album->save();
}
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/2018_08_15_103716_move_photos.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function up()
$photo->iso = $result->iso;
$photo->aperture = $result->aperture;
$photo->make = $result->make;
$photo->lens = $result->lens;
$photo->lens = $result->lens ?? '';
$photo->model = $result->model;
$photo->shutter = $result->shutter;
$photo->focal = $result->focal;
Expand Down Expand Up @@ -78,7 +78,7 @@ public function up()
} else {
$result->small = '';
}
$photo->license = $result->license;
$photo->license = $result->license ?? 'none';
$photo->save();
}
} else {
Expand Down

0 comments on commit 2dec96d

Please sign in to comment.