Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
This commit is contained in:
parent
95e15d2c8a
commit
cbcf62086f
573 changed files with 4387 additions and 9411 deletions
|
@ -1,11 +1,5 @@
|
|||
<?php
|
||||
/**
|
||||
* Pterodactyl - Panel
|
||||
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
||||
*
|
||||
* This software is licensed under the terms of the MIT license.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class MigrateToNewServiceSystem extends Migration
|
||||
|
|
|
@ -27,7 +27,7 @@ class Add2FaLastAuthorizationTimeColumn extends Migration
|
|||
|
||||
DB::table('users')->where('id', $user->id)->update([
|
||||
'totp_secret' => Crypt::encrypt($user->totp_secret),
|
||||
'updated_at' => Carbon::now()->toIso8601String(),
|
||||
'updated_at' => Carbon::now()->toAtomString(),
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
@ -46,7 +46,7 @@ class Add2FaLastAuthorizationTimeColumn extends Migration
|
|||
|
||||
DB::table('users')->where('id', $user->id)->update([
|
||||
'totp_secret' => Crypt::decrypt($user->totp_secret),
|
||||
'updated_at' => Carbon::now()->toIso8601String(),
|
||||
'updated_at' => Carbon::now()->toAtomString(),
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue