mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 08:30:06 +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();
|
||||
|
||||
Reference in New Issue
Block a user