1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fixes for react migration

This commit is contained in:
David Bomba 2022-07-26 10:13:00 +10:00
parent e6dcf16611
commit 760b8f8ec3

View File

@ -13,15 +13,21 @@ return new class extends Migration
*/ */
public function up() public function up()
{ {
$df = App\Models\DateFormat::find(7); if($df = App\Models\DateFormat::find(7))
{
$df->format_moment = 'ddd MMM D, YYYY'; $df->format_moment = 'ddd MMM D, YYYY';
$df->save(); $df->save();
}
if($df = App\Models\DateFormat::find(14))
{
$df = App\Models\DateFormat::find(14);
$df->format_moment = 'DD/MM/YYYY'; $df->format_moment = 'DD/MM/YYYY';
$df->save(); $df->save();
} }
}
/** /**
* Reverse the migrations. * Reverse the migrations.