Skip to content

Commit

Permalink
Merge pull request #6 from laravelcm/fix-migration-files-bug
Browse files Browse the repository at this point in the history
🐛 Fix duplicate migration bug
  • Loading branch information
mckenziearts authored Oct 3, 2023
2 parents b2b40ea + 7f05a59 commit 3567b6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions src/SubscriptionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,4 @@ public function configurePackage(Package $package): void
->askToStarRepoOnGitHub('laravelcm/laravel-subscriptions');
});
}

public function bootingPackage(): void
{
if ($this->app->runningInConsole()) {
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
}
}
}
1 change: 1 addition & 0 deletions tests/src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ protected function getPackageProviders($app): array
protected function defineDatabaseMigrations(): void
{
$this->loadLaravelMigrations();
$this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
}

protected function getEnvironmentSetUp($app): void
Expand Down

0 comments on commit 3567b6e

Please sign in to comment.