Encrypt more stuff in the cleanup routine [skip ci]

This commit is contained in:
James Cole 2015-05-23 09:00:11 +02:00
parent 16b909c4df
commit c5a5f17643

View File

@ -8,6 +8,7 @@ use FireflyIII\Models\BudgetLimit;
use FireflyIII\Models\Category;
use FireflyIII\Models\LimitRepetition;
use FireflyIII\Models\PiggyBank;
use FireflyIII\Models\PiggyBankEvent;
use FireflyIII\Models\Preference;
use FireflyIII\Models\Reminder;
use FireflyIII\Models\TransactionJournal;
@ -206,6 +207,16 @@ class Cleanup
unset($set, $entry, $amount);
//encrypt piggy bank event amount
$set = PiggyBankEvent::whereNull('amount_encrypted')->take(5)->get();
/** @var PiggyBankEvent $entry */
foreach ($set as $entry) {
$count++;
$amount = $entry->amount;
$entry->amount = $amount;
$entry->save();
}
unset($set, $entry, $amount);
//encrypt piggy bank repetition currentamount
//encrypt piggy bank targetamount
//encrypt preference name (add field)