1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +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,14 +13,20 @@ return new class extends Migration
*/
public function up()
{
$df = App\Models\DateFormat::find(7);
$df->format_moment = 'ddd MMM D, YYYY';
$df->save();
if($df = App\Models\DateFormat::find(7))
{
$df = App\Models\DateFormat::find(14);
$df->format_moment = 'DD/MM/YYYY';
$df->save();
$df->format_moment = 'ddd MMM D, YYYY';
$df->save();
}
if($df = App\Models\DateFormat::find(14))
{
$df->format_moment = 'DD/MM/YYYY';
$df->save();
}
}
/**