Skip to content

Firefly III: a personal finances manager

Add new command

James Cole73f1f8aea024
diff --git a/app/Console/Commands/Correction/CorrectDatabase.php b/app/Console/Commands/Correction/CorrectDatabase.php
index d2e88f4725..b3c5e8c1e3 100644
--- a/app/Console/Commands/Correction/CorrectDatabase.php
+++ b/app/Console/Commands/Correction/CorrectDatabase.php
@@ -75,6 +75,7 @@ class CorrectDatabase extends Command
'firefly-iii:fix-long-descriptions',
'firefly-iii:fix-recurring-transactions',
'firefly-iii:restore-oauth-keys',
+ 'firefly-iii:fix-transaction-types'
];
foreach ($commands as $command) {
$this->line(sprintf('Now executing %s', $command));
diff --git a/app/Console/Commands/Upgrade/UpgradeDatabase.php b/app/Console/Commands/Upgrade/UpgradeDatabase.php
index 9107846e69..d1f744eedf 100644
--- a/app/Console/Commands/Upgrade/UpgradeDatabase.php
+++ b/app/Console/Commands/Upgrade/UpgradeDatabase.php
@@ -76,7 +76,7 @@ class UpgradeDatabase extends Command
'firefly-iii:migrate-recurrence-meta',
'firefly-iii:migrate-tag-locations',
- // there are 15 verify commands.
+ // there are 16 verify commands.
'firefly-iii:fix-piggies',
'firefly-iii:create-link-types',
'firefly-iii:create-access-tokens',
@@ -94,6 +94,7 @@ class UpgradeDatabase extends Command
'firefly-iii:fix-long-descriptions',
'firefly-iii:fix-recurring-transactions',
'firefly-iii:unify-group-accounts',
+ 'firefly-iii:fix-transaction-types',
// two report commands
'firefly-iii:report-empty-objects',
diff --git a/app/Support/FireflyConfig.php b/app/Support/FireflyConfig.php
index ebb8b725d3..2ce1219d79 100644
--- a/app/Support/FireflyConfig.php
+++ b/app/Support/FireflyConfig.php
@@ -156,7 +156,7 @@ class FireflyConfig
if ('testing' === config('app.env')) {
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 */
try {
$config = Configuration::whereName($name)->first();
@@ -168,7 +168,7 @@ class FireflyConfig
return $item;
}
if (null === $config) {
- Log::debug('Does not exist yet ', ['name' => $name]);
+ //Log::debug('Does not exist yet ', ['name' => $name]);
/** @var Configuration $item */
$item = new Configuration;
$item->name = $name;
@@ -179,7 +179,7 @@ class FireflyConfig
return $item;
}
- Log::debug('Exists already, overwrite value.', ['name' => $name]);
+ //Log::debug('Exists already, overwrite value.', ['name' => $name]);
$config->data = $value;
$config->save();
Cache::forget('ff-config-' . $name);
diff --git a/composer.json b/composer.json
index 3654e8708b..ccf7ab59fc 100644
--- a/composer.json
+++ b/composer.json
@@ -185,6 +185,7 @@
"@php artisan firefly-iii:fix-long-descriptions",
"@php artisan firefly-iii:fix-recurring-transactions",
"@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-sum",