From 4cefa2693b78377c95a72a58ec91e64c0868ac6c Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Mon, 9 May 2022 19:19:49 +0100 Subject: [PATCH] fix: remove unused time comparisons --- src/Concerns/Orbital.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Concerns/Orbital.php b/src/Concerns/Orbital.php index 5122165..6adce44 100644 --- a/src/Concerns/Orbital.php +++ b/src/Concerns/Orbital.php @@ -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.