mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 18:40:12 +00:00
Add new command
This commit is contained in:
@@ -75,6 +75,7 @@ class CorrectDatabase extends Command
|
|||||||
'firefly-iii:fix-long-descriptions',
|
'firefly-iii:fix-long-descriptions',
|
||||||
'firefly-iii:fix-recurring-transactions',
|
'firefly-iii:fix-recurring-transactions',
|
||||||
'firefly-iii:restore-oauth-keys',
|
'firefly-iii:restore-oauth-keys',
|
||||||
|
'firefly-iii:fix-transaction-types'
|
||||||
];
|
];
|
||||||
foreach ($commands as $command) {
|
foreach ($commands as $command) {
|
||||||
$this->line(sprintf('Now executing %s', $command));
|
$this->line(sprintf('Now executing %s', $command));
|
||||||
|
@@ -76,7 +76,7 @@ class UpgradeDatabase extends Command
|
|||||||
'firefly-iii:migrate-recurrence-meta',
|
'firefly-iii:migrate-recurrence-meta',
|
||||||
'firefly-iii:migrate-tag-locations',
|
'firefly-iii:migrate-tag-locations',
|
||||||
|
|
||||||
// there are 15 verify commands.
|
// there are 16 verify commands.
|
||||||
'firefly-iii:fix-piggies',
|
'firefly-iii:fix-piggies',
|
||||||
'firefly-iii:create-link-types',
|
'firefly-iii:create-link-types',
|
||||||
'firefly-iii:create-access-tokens',
|
'firefly-iii:create-access-tokens',
|
||||||
@@ -94,6 +94,7 @@ class UpgradeDatabase extends Command
|
|||||||
'firefly-iii:fix-long-descriptions',
|
'firefly-iii:fix-long-descriptions',
|
||||||
'firefly-iii:fix-recurring-transactions',
|
'firefly-iii:fix-recurring-transactions',
|
||||||
'firefly-iii:unify-group-accounts',
|
'firefly-iii:unify-group-accounts',
|
||||||
|
'firefly-iii:fix-transaction-types',
|
||||||
|
|
||||||
// two report commands
|
// two report commands
|
||||||
'firefly-iii:report-empty-objects',
|
'firefly-iii:report-empty-objects',
|
||||||
|
@@ -156,7 +156,7 @@ class FireflyConfig
|
|||||||
if ('testing' === config('app.env')) {
|
if ('testing' === config('app.env')) {
|
||||||
Log::warning(sprintf('%s should NOT be called in the TEST environment!', __METHOD__));
|
Log::warning(sprintf('%s should NOT be called in the TEST environment!', __METHOD__));
|
||||||
}
|
}
|
||||||
Log::debug('Set new value for ', ['name' => $name]);
|
//Log::debug('Set new value for ', ['name' => $name]);
|
||||||
/** @var Configuration $config */
|
/** @var Configuration $config */
|
||||||
try {
|
try {
|
||||||
$config = Configuration::whereName($name)->first();
|
$config = Configuration::whereName($name)->first();
|
||||||
@@ -168,7 +168,7 @@ class FireflyConfig
|
|||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
if (null === $config) {
|
if (null === $config) {
|
||||||
Log::debug('Does not exist yet ', ['name' => $name]);
|
//Log::debug('Does not exist yet ', ['name' => $name]);
|
||||||
/** @var Configuration $item */
|
/** @var Configuration $item */
|
||||||
$item = new Configuration;
|
$item = new Configuration;
|
||||||
$item->name = $name;
|
$item->name = $name;
|
||||||
@@ -179,7 +179,7 @@ class FireflyConfig
|
|||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
Log::debug('Exists already, overwrite value.', ['name' => $name]);
|
//Log::debug('Exists already, overwrite value.', ['name' => $name]);
|
||||||
$config->data = $value;
|
$config->data = $value;
|
||||||
$config->save();
|
$config->save();
|
||||||
Cache::forget('ff-config-' . $name);
|
Cache::forget('ff-config-' . $name);
|
||||||
|
@@ -185,6 +185,7 @@
|
|||||||
"@php artisan firefly-iii:fix-long-descriptions",
|
"@php artisan firefly-iii:fix-long-descriptions",
|
||||||
"@php artisan firefly-iii:fix-recurring-transactions",
|
"@php artisan firefly-iii:fix-recurring-transactions",
|
||||||
"@php artisan firefly-iii:unify-group-accounts",
|
"@php artisan firefly-iii:unify-group-accounts",
|
||||||
|
"@php artisan firefly-iii:fix-transaction-types",
|
||||||
|
|
||||||
"@php artisan firefly-iii:report-empty-objects",
|
"@php artisan firefly-iii:report-empty-objects",
|
||||||
"@php artisan firefly-iii:report-sum",
|
"@php artisan firefly-iii:report-sum",
|
||||||
|
Reference in New Issue
Block a user