Encrypt more stuff in the cleanup routine [skip ci]

This commit is contained in:
James Cole 2015-05-23 09:02:27 +02:00
parent b8275b4734
commit 8a867e71a1

View File

@ -229,7 +229,17 @@ class Cleanup
} }
unset($set, $entry, $amount); unset($set, $entry, $amount);
//encrypt piggy bank targetamount // encrypt piggy bank targetamount
$set = PiggyBank::whereNull('targetamount_encrypted')->take(5)->get();
/** @var PiggyBank $entry */
foreach ($set as $entry) {
$count++;
$amount = $entry->targetamount;
$entry->targetamount = $amount;
$entry->save();
}
unset($set, $entry, $amount);
//encrypt preference name (add field) //encrypt preference name (add field)
//encrypt preference data (add field) //encrypt preference data (add field)
//encrypt transaction amount //encrypt transaction amount