Skip to content

Commit

Permalink
FIX create migration (#3299)
Browse files Browse the repository at this point in the history
  • Loading branch information
wamesro authored Jun 29, 2023
1 parent 01d9160 commit 84f7bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaLibraryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 84f7bb2

Please sign in to comment.