From c4c547aaf1bac48693cd11c7f6c7cbab69478921 Mon Sep 17 00:00:00 2001 From: Eric Mugerwa Date: Wed, 28 Aug 2024 15:35:23 +0100 Subject: [PATCH] AB#53749-Report-Package-Publish-Migrations --- changelog.md | 4 ++++ readme.md | 6 ++++++ src/ReportServiceProvider.php | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/changelog.md b/changelog.md index 14e5020..2cdc1e3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## v4.4.0 + ++ Publish database migration files + ## v4.3.1 + Add extended attributes to schedule frequency diff --git a/readme.md b/readme.md index 5ff981f..2555b4e 100644 --- a/readme.md +++ b/readme.md @@ -18,6 +18,12 @@ Copy the package config to your local config. php artisan vendor:publish --tag=report-config ``` +Copy the package database migrations. + +```bash +php artisan vendor:publish --tag=report-migrations +``` + Laravel Report comes with its own database migrations, once the package has been installed run the migrations. diff --git a/src/ReportServiceProvider.php b/src/ReportServiceProvider.php index 3823ea2..82b8de5 100644 --- a/src/ReportServiceProvider.php +++ b/src/ReportServiceProvider.php @@ -22,6 +22,11 @@ public function boot() __DIR__ . '/../config/report.php' => config_path('report.php'), ], 'report-config'); + // Publish MBL Solutions report database migrations + $this->publishes([ + __DIR__.'/../database/migrations' => database_path('migrations'), + ], 'report-migrations'); + if ($this->app->runningInConsole()) { $this->commands([ DispatchScheduledReportsCommand::class