Better generation of installation ID.

This commit is contained in:
James Cole
2020-06-06 06:57:44 +02:00
parent d493820cc8
commit f5c075936f
4 changed files with 42 additions and 10 deletions

View File

@@ -23,6 +23,7 @@ declare(strict_types=1);
namespace FireflyIII\Console\Commands;
use FireflyIII\Support\System\GeneratesInstallationId;
use Illuminate\Console\Command;
/**
@@ -32,6 +33,8 @@ use Illuminate\Console\Command;
*/
class UpgradeFireflyInstructions extends Command
{
use GeneratesInstallationId;
/**
* The console command description.
*
@@ -50,6 +53,7 @@ class UpgradeFireflyInstructions extends Command
*/
public function handle(): int
{
$this->generateInstallationId();
if ('update' === (string) $this->argument('task')) {
$this->updateInstructions();
}
@@ -64,6 +68,7 @@ class UpgradeFireflyInstructions extends Command
app('telemetry')->feature('system.database.driver', env('DB_CONNECTION', '(unknown)'));
app('telemetry')->feature('system.os.is_docker', $isDocker);
app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}