mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Merge pull request #7685 from turbo124/v5-stable
Fixes for react migration
This commit is contained in:
commit
bc244ee633
@ -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…
Reference in New Issue
Block a user