Encrypt bill amounts [skip ci]

This commit is contained in:
James Cole 2015-05-23 08:57:02 +02:00
parent 676e48254a
commit ca46ebe3b2

View File

@ -159,6 +159,28 @@ class Cleanup
}
unset($set, $entry, $amount);
// encrypt bill amount_min
$set = Bill::whereNull('amount_min_encrypted')->take(5)->get();
/** @var Bill $entry */
foreach ($set as $entry) {
$count++;
$amount = $entry->amount_min;
$entry->amount_min = $amount;
$entry->save();
}
unset($set, $entry, $amount);
// encrypt bill amount_max
$set = Bill::whereNull('amount_max_encrypted')->take(5)->get();
/** @var Bill $entry */
foreach ($set as $entry) {
$count++;
$amount = $entry->amount_max;
$entry->amount_max = $amount;
$entry->save();
}
unset($set, $entry, $amount);
//encrypt budget limit amount
//encrypt limit repetition amount
//encrypt piggy bank event amount