mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Sync between command line and FF
This commit is contained in:
@@ -102,7 +102,7 @@ SEND_REPORT_JOURNALS=true
|
|||||||
MAPBOX_API_KEY=
|
MAPBOX_API_KEY=
|
||||||
|
|
||||||
# Firefly III currently supports two provider for live Currency Exchange Rates:
|
# Firefly III currently supports two provider for live Currency Exchange Rates:
|
||||||
# "fixer" is the default (for backward compatibility), and "ratesapi" is the new one.
|
# "fixer", and "ratesapi".
|
||||||
# RatesApi.IO (see https://ratesapi.io) is a FREE and OPEN SOURCE live currency exchange rates,
|
# RatesApi.IO (see https://ratesapi.io) is a FREE and OPEN SOURCE live currency exchange rates,
|
||||||
# built compatible with Fixer.IO, based on data published by European Central Bank, and doesn't require API key.
|
# built compatible with Fixer.IO, based on data published by European Central Bank, and doesn't require API key.
|
||||||
CER_PROVIDER=ratesapi
|
CER_PROVIDER=ratesapi
|
||||||
|
@@ -52,6 +52,9 @@ class UpgradeDatabase extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
|
$this->callInitialCommands();
|
||||||
|
|
||||||
|
|
||||||
$commands = [
|
$commands = [
|
||||||
// there are 12 upgrade commands.
|
// there are 12 upgrade commands.
|
||||||
'firefly-iii:transaction-identifiers',
|
'firefly-iii:transaction-identifiers',
|
||||||
@@ -100,6 +103,17 @@ class UpgradeDatabase extends Command
|
|||||||
echo $result;
|
echo $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set new DB version.
|
||||||
|
// index will set FF3 version.
|
||||||
|
app('fireflyconfig')->set('ff3_version', (string)config('firefly.version'));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function callInitialCommands(): void
|
||||||
|
{
|
||||||
|
Artisan::call('migrate', ['--seed' => true]);
|
||||||
|
Artisan::call('firefly-iii:decrypt-all');
|
||||||
|
Artisan::call('generate-keys');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user