Optimise product tables

This commit is contained in:
Deon George
2022-04-22 15:23:08 +10:00
parent e1a4db700f
commit 16cc0c9f8d
10 changed files with 88 additions and 24 deletions

View File

@@ -35,8 +35,8 @@ return new class extends Migration
$o->created_at = \Carbon\Carbon::createFromTimestamp($o->date_orig);
if ($o->date_last)
$o->updated_at = \Carbon\Carbon::createFromTimestamp($o->date_last);
if ($o->due_date)
$o->due_at = \Carbon\Carbon::createFromTimestamp($o->due_date);
if ($o->getRawOriginal('due_date'))
$o->due_at = \Carbon\Carbon::createFromTimestamp($o->getRawOriginal('due_date'));
if ($o->reminders) {
try {
$reminders = unserialize($o->reminders);