Skip to content

Commit

Permalink
fix: database migration on first launch (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ authored Dec 18, 2024
1 parent 8bbef24 commit 5bb2e17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/NativeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ public function packageRegistered()
}
}

public function bootingPackage()
{
if (config('nativephp-internal.running')) {
$this->rewriteDatabase();
}
}

protected function configureApp()
{
if (config('app.debug')) {
Expand All @@ -94,8 +101,6 @@ protected function configureApp()

$this->rewriteStoragePath();

$this->rewriteDatabase();

$this->configureDisks();

config(['session.driver' => 'file']);
Expand Down

0 comments on commit 5bb2e17

Please sign in to comment.