mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
New upgrade command for recurring transactions #2483
This commit is contained in:
@@ -110,12 +110,18 @@ class MigrateRecurrenceMeta extends Command
|
||||
if (null === $firstTransaction) {
|
||||
return 0;
|
||||
}
|
||||
$value = $meta->value;
|
||||
|
||||
if ('tags' === $meta->name) {
|
||||
$array = explode(',', $meta->value);
|
||||
$value = json_encode($array);
|
||||
}
|
||||
|
||||
RecurrenceTransactionMeta::create(
|
||||
[
|
||||
'rt_id' => $firstTransaction->id,
|
||||
'name' => $meta->name,
|
||||
'value' => $meta->value,
|
||||
'value' => $value,
|
||||
]
|
||||
);
|
||||
$meta->forceDelete();
|
||||
|
@@ -58,7 +58,7 @@ class UpgradeDatabase extends Command
|
||||
|
||||
|
||||
$commands = [
|
||||
// there are 12 upgrade commands.
|
||||
// there are 13 upgrade commands.
|
||||
'firefly-iii:transaction-identifiers',
|
||||
'firefly-iii:migrate-to-groups',
|
||||
'firefly-iii:account-currencies',
|
||||
@@ -71,6 +71,7 @@ class UpgradeDatabase extends Command
|
||||
'firefly-iii:cc-liabilities',
|
||||
'firefly-iii:back-to-journals',
|
||||
'firefly-iii:rename-account-meta',
|
||||
'firefly-iii:migrate-recurrence-meta',
|
||||
|
||||
// there are 14 verify commands.
|
||||
'firefly-iii:fix-piggies',
|
||||
|
Reference in New Issue
Block a user