Skip to content

Commit

Permalink
remove loading migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedmanssour committed Aug 22, 2023
1 parent 6e884fd commit 16a942e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/LaravelRecurringModelsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,12 @@

class LaravelRecurringModelsServiceProvider extends PackageServiceProvider
{
public function boot()
{
parent::boot();

if ($this->app->environment('testing')) {
$this->loadMigrationsFrom(__DIR__.'/../tests/Stubs/Migrations');
}
}

public function configurePackage(Package $package): void
{
$package
->name('laravel-recurring-models')
->hasMigration('1682348400_create_recurring_models_table')
->hasMigration('1692297663_add_tz_offset_to_repetitions_table')
->hasMigration('1692434186_adds_week_of_month_to_repetitions_table')
->runsMigrations($this->app->environment('testing'));
->hasMigration('1692434186_adds_week_of_month_to_repetitions_table');
}
}

0 comments on commit 16a942e

Please sign in to comment.