1
0
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:
David Bomba 2022-07-26 10:13:43 +10:00 committed by GitHub
commit bc244ee633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}
}
/**