From 96fd55782f8d0ada7360e139bf2e385f4750f925 Mon Sep 17 00:00:00 2001 From: "WAME s.r.o" Date: Thu, 29 Jun 2023 08:53:00 +0200 Subject: [PATCH] FIX create migration --- src/MediaLibraryServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MediaLibraryServiceProvider.php b/src/MediaLibraryServiceProvider.php index 3530fcccb..2668ba89d 100644 --- a/src/MediaLibraryServiceProvider.php +++ b/src/MediaLibraryServiceProvider.php @@ -48,7 +48,7 @@ protected function registerPublishables(): void __DIR__.'/../config/media-library.php' => config_path('media-library.php'), ], 'config'); - if (! class_exists('CreateMediaTable')) { + if (empty(glob(database_path('migrations/*_create_media_table.php')))) { $this->publishes([ __DIR__.'/../database/migrations/create_media_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_media_table.php'), ], 'migrations');