Files
filament/tests/database/migrations/0009_modify_users_table.php
Dan Harrin 5b7cdcdf7f fix: Repeater n+1 queries (#18831)
* fix: Repeater n+1 queries

* change col type
2026-01-02 18:14:19 +00:00

39 lines
1.1 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table): void {
$table->after('password', function (Blueprint $table): void {
$table->jsonb('json')->nullable();
$table->boolean('has_email_authentication')->default(false);
$table->text('app_authentication_secret')->nullable();
$table->text('app_authentication_recovery_codes')->nullable();
});
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table): void {
$table->dropColumn([
'json',
'has_email_authentication',
'app_authentication_secret',
'app_authentication_recovery_codes',
]);
});
}
};