Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjurstrom committed Sep 7, 2024
1 parent e81dd72 commit 9c213e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/UpdateIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ protected static function setTags(Document $d, array $tags): void

protected static function runMigrations(): void
{
try{
try {
Artisan::call('migrate:rollback', [
'--path' => base_path('vendor/benbjurstrom/prezet/database/migrations'),
'--database' => 'prezet',
'--realpath' => true,
'--no-interaction' => true,
]);
}catch (QueryException $e){
} catch (QueryException $e) {
// either file does not exist or
// migrations table does not exist
}
Expand Down

0 comments on commit 9c213e1

Please sign in to comment.