mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
delete language transaction in 2.0.14 update
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Domain\Localization\Actions;
|
||||||
|
|
||||||
|
use DB;
|
||||||
|
|
||||||
|
class DeleteLanguageStringsAction
|
||||||
|
{
|
||||||
|
public function __invoke(array $list): void
|
||||||
|
{
|
||||||
|
DB::table('language_translations')
|
||||||
|
->whereIn('key', $list)
|
||||||
|
->delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
namespace Domain\Maintenance\Controllers;
|
namespace Domain\Maintenance\Controllers;
|
||||||
|
|
||||||
use DB;
|
use DB;
|
||||||
|
use Domain\Localization\Actions\DeleteLanguageStringsAction;
|
||||||
use Schema;
|
use Schema;
|
||||||
use Storage;
|
use Storage;
|
||||||
use Artisan;
|
use Artisan;
|
||||||
@@ -20,6 +21,7 @@ class UpgradeSystemController extends Controller
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public UpgradeDatabaseAction $upgradeDatabase,
|
public UpgradeDatabaseAction $upgradeDatabase,
|
||||||
|
public DeleteLanguageStringsAction $deleteLanguageStrings,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,5 +144,9 @@ class UpgradeSystemController extends Controller
|
|||||||
User::whereNotNull('two_factor_secret')
|
User::whereNotNull('two_factor_secret')
|
||||||
->cursor()
|
->cursor()
|
||||||
->each(fn ($user) => $user->forceFill(['two_factor_confirmed_at' => now()])->save());
|
->each(fn ($user) => $user->forceFill(['two_factor_confirmed_at' => now()])->save());
|
||||||
|
|
||||||
|
($this->deleteLanguageStrings)([
|
||||||
|
'popup_2fa.disappear_qr'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user