mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for react migration
This commit is contained in:
parent
e6dcf16611
commit
760b8f8ec3
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user