Skip to content

Commit

Permalink
fix: attempt to fix migrations table error on Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
czernika committed Mar 19, 2024
1 parent 1f2e676 commit f98f1bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ protected function defineDatabaseMigrations()
$this->loadLaravelMigrations();
$this->loadMigrationsFrom(workbench_path('database/migrations'));
$this->artisan('orchid:install');

$this->artisan('migrate');

$this->beforeApplicationDestroyed(
fn () => $this->artisan('migrate:rollback')
);
}

public function renderComponent(Field $component, ?array $data = []): string
Expand Down

0 comments on commit f98f1bc

Please sign in to comment.