Skip to content

Commit 3567b6e

Browse files
authored
Merge pull request #6 from laravelcm/fix-migration-files-bug
🐛 Fix duplicate migration bug
2 parents b2b40ea + 7f05a59 commit 3567b6e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/SubscriptionServiceProvider.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,4 @@ public function configurePackage(Package $package): void
2727
->askToStarRepoOnGitHub('laravelcm/laravel-subscriptions');
2828
});
2929
}
30-
31-
public function bootingPackage(): void
32-
{
33-
if ($this->app->runningInConsole()) {
34-
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
35-
}
36-
}
3730
}

tests/src/TestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ protected function getPackageProviders($app): array
2323
protected function defineDatabaseMigrations(): void
2424
{
2525
$this->loadLaravelMigrations();
26+
$this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
2627
}
2728

2829
protected function getEnvironmentSetUp($app): void

0 commit comments

Comments
 (0)