File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 33namespace Studio \Totem \Providers ;
44
55use Cron \CronExpression ;
6+ use Illuminate \Support \Facades \Log ;
67use Illuminate \Support \Facades \Schema ;
78use Illuminate \Support \ServiceProvider ;
89use Illuminate \Support \Facades \Validator ;
@@ -49,8 +50,13 @@ public function register()
4950 $ this ->app ->register (TotemRouteServiceProvider::class);
5051 $ this ->app ->register (TotemEventServiceProvider::class);
5152
52- if (Schema::hasTable ('tasks ' )) {
53- $ this ->app ->register (ConsoleServiceProvider::class);
53+ try {
54+ if (Schema::hasTable ('tasks ' )) {
55+ $ this ->app ->register (ConsoleServiceProvider::class);
56+ }
57+ } catch (\PDOException $ ex ) {
58+ // This will trigger if DB cannot be connected to
59+ Log::error ($ ex ->getMessage ());
5460 }
5561
5662 $ this ->mergeConfigFrom (
You can’t perform that action at this time.
0 commit comments