We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c21eb6f commit 8652e83Copy full SHA for 8652e83
src/Listeners/MigrationStartedEventListener.php
@@ -2,6 +2,7 @@
2
3
namespace LaravelSynchronize\Listeners;
4
5
+use Schema;
6
use SplFileInfo;
7
use Illuminate\Support\Facades\DB;
8
use Illuminate\Support\Facades\Config;
@@ -41,6 +42,10 @@ public function handle(MigrationStarted $migrationStarted)
41
42
return;
43
}
44
45
+ if (!Schema::hasTable(Config::get('synchronizer.table'))) {
46
+ return;
47
+ }
48
+
49
$class = get_class($migrationStarted->migration) . 'Synchronization';
50
$files = $this->synchronizer->getSynchronizations();
51
0 commit comments