Encrypt more stuff in the cleanup routine [skip ci]

This commit is contained in:
James Cole 2015-05-23 09:01:07 +02:00
parent c5a5f17643
commit 36b951b146

View File

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