parent
e3df0738da
commit
8e8147cc43
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Crypt;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Illuminate\Support\Facades\Crypt;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
@ -45,7 +45,7 @@ class SetupTableForKeyEncryption extends Migration
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
/** @var \Pterodactyl\Models\APIKey $key */
|
/* @var \Pterodactyl\Models\APIKey $key */
|
||||||
DB::transaction(function () {
|
DB::transaction(function () {
|
||||||
foreach (DB::table('api_keys')->cursor() as $key) {
|
foreach (DB::table('api_keys')->cursor() as $key) {
|
||||||
DB::table('api_keys')->where('id', $key->id)->update([
|
DB::table('api_keys')->where('id', $key->id)->update([
|
||||||
|
|
Loading…
Reference in a new issue