Skip to content

Commit

Permalink
fix: remove unused time comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed May 9, 2022
1 parent a94e7f3 commit 4cefa26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Concerns/Orbital.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ protected static function seedData(OrbitOptions $options, bool $force = false):
foreach ($files as $file) {
$path = $file->getPathname();

if (! Support::fileNeedsToBeSeeded($path, static::class) && ! $force) {
continue;
}

$record = new static($driver->fromFile($file->getPathname()));
$record = new static($driver->fromFile($path));
$schema = static::resolveConnection()->getSchemaBuilder()->getColumnListing($record->getTable());

// 1b. We need to drop any values from the file that do not have a valid DB column.
Expand Down

0 comments on commit 4cefa26

Please sign in to comment.