Skip to content

Commit d838ddb

Browse files
committed
Merge branch 'dane/self-update' into develop
2 parents 07798b7 + bf22913 commit d838ddb

File tree

10 files changed

+201
-196
lines changed

10 files changed

+201
-196
lines changed

app/Console/Commands/Maintenance/PruneOrphanedBackupsCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PruneOrphanedBackupsCommand extends Command
1212
/**
1313
* @var string
1414
*/
15-
protected $signature = 'p:maintenance:prune-backups {--since-minutes=30}';
15+
protected $signature = 'p:maintenance:prune-backups {--prune-age=}';
1616

1717
/**
1818
* @var string
@@ -21,9 +21,9 @@ class PruneOrphanedBackupsCommand extends Command
2121

2222
public function handle(BackupRepository $repository)
2323
{
24-
$since = $this->option('since-minutes');
25-
if (!is_digit($since)) {
26-
throw new InvalidArgumentException('The --since-minutes option must be a valid numeric digit.');
24+
$since = $this->option('prune-age') ?? config('backups.prune_age', 360);
25+
if (!$since || !is_digit($since)) {
26+
throw new InvalidArgumentException('The "--prune-age" argument must be a value greater than 0.');
2727
}
2828

2929
$query = $repository->getBuilder()

app/Console/Commands/Migration/CleanOrphanedApiKeysCommand.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

app/Console/Commands/Overrides/KeyGenerateCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class KeyGenerateCommand extends BaseKeyGenerateCommand
1313
public function handle()
1414
{
1515
if (!empty(config('app.key')) && $this->input->isInteractive()) {
16-
$this->output->warning(trans('command/messages.key.warning'));
17-
if (!$this->confirm(trans('command/messages.key.confirm'))) {
16+
$this->output->warning('It appears you have already configured an application encryption key. Continuing with this process with overwrite that key and cause data corruption for any existing encrypted data. DO NOT CONTINUE UNLESS YOU KNOW WHAT YOU ARE DOING.');
17+
if (!$this->confirm('I understand the consequences of performing this command and accept all responsibility for the loss of encrypted data.')) {
1818
return;
1919
}
2020

21-
if (!$this->confirm(trans('command/messages.key.final_confirm'))) {
21+
if (!$this->confirm('Are you sure you wish to continue? Changing the application encryption key WILL CAUSE DATA LOSS.')) {
2222
return;
2323
}
2424
}

app/Console/Commands/Overrides/SeedCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ class SeedCommand extends BaseSeedCommand
1010
use RequiresDatabaseMigrations;
1111

1212
/**
13-
* Block someone from running this seed command if they have not completed the migration
14-
* process.
15-
*
16-
* @return int
13+
* Block someone from running this seed command if they have not completed
14+
* the migration process.
1715
*/
1816
public function handle()
1917
{
2018
if (!$this->hasCompletedMigrations()) {
21-
return $this->showMigrationWarning();
19+
$this->showMigrationWarning();
20+
21+
return;
2222
}
2323

24-
return parent::handle();
24+
parent::handle();
2525
}
2626
}

app/Console/Commands/Overrides/UpCommand.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ class UpCommand extends BaseUpCommand
1010
use RequiresDatabaseMigrations;
1111

1212
/**
13-
* @return bool|int
13+
* Block someone from running this up command if they have not completed
14+
* the migration process.
1415
*/
1516
public function handle()
1617
{
1718
if (!$this->hasCompletedMigrations()) {
18-
return $this->showMigrationWarning();
19+
$this->showMigrationWarning();
20+
21+
return;
1922
}
2023

21-
return parent::handle();
24+
parent::handle();
2225
}
2326
}

app/Console/Commands/Server/BulkReinstallActionCommand.php

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)