getConnectionName(); $tableName = EloquentHealthResultStore::getHistoryItemInstance()->getTable(); Schema::connection($connection)->create($tableName, function (Blueprint $table) { $table->id(); $table->string('check_name'); $table->string('check_label'); $table->string('status'); $table->text('notification_message')->nullable(); $table->string('short_summary')->nullable(); $table->json('meta'); $table->timestamp('ended_at'); $table->uuid('batch'); $table->timestamps(); }); Schema::connection($connection)->table($tableName, function(Blueprint $table) { $table->index('created_at'); $table->index('batch'); }); } };