Skip to content

Commit 6e84c13

Browse files
committed
fixes file path upgrade for projects that don't use data-import
1 parent 389efd7 commit 6e84c13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Upgrades/FilePath.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public function migrateData(): void
3737
'path' => DB::raw("CONCAT('{$this->folder($type)}', '/', saved_name)"),
3838
]));
3939

40-
RejectedImport::all()->each(fn ($rejected) => $this->handle($rejected));
40+
if (class_exists(RejectedImport::class)) {
41+
RejectedImport::all()->each(fn ($rejected) => $this->handle($rejected));
42+
}
4143
}
4244

4345
public function migratePostDataMigration(): void

0 commit comments

Comments
 (0)