Skip to content

Commit

Permalink
removed migrations from publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mjawad096 committed Jun 1, 2021
1 parent 6adf6c7 commit e7efbe0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/GrapesjsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,5 @@ public function publishFiles()
__DIR__.'/public' => public_path(),
__DIR__.'/../fonts' => public_path('fonts'),
], 'public');

if (! class_exists('CreateTempMediaTable')) {
$this->publishes([
__DIR__.'/database/migrations/create_temp_media_table.php.stub' => database_path('migrations/2021_05_06_064425_create_temp_media_table.php'),
], 'migrations');
}

if (! class_exists('CreateMediaTable')) {
$stub_file = "/database/migrations/create_media_table.php.stub";

$stub_path = __DIR__.'/../../../spatie/laravel-medialibrary';
if(!file_exists($stub_path.$stub_file)){
$stub_path = __DIR__;
}

$this->publishes([
$stub_path.$stub_file => database_path('migrations/2021_05_06_064425_create_media_table.php'),
], 'migrations');
}
}
}

0 comments on commit e7efbe0

Please sign in to comment.