Fix #19 Set all the ERROR confirmation_key to null in the accounts table

This commit is contained in:
Timothée Jaussoin 2023-10-09 16:47:40 +02:00
parent 3dece6158d
commit 95707c7749

View file

@ -0,0 +1,16 @@
<?php
use App\Account;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
public function up()
{
Account::withoutGlobalScopes()->where('confirmation_key', 'ERROR')->update(['confirmation_key' => null]);
}
public function down()
{
}
};