Файл: database/upgrades/2026_05_18_000002_remove_login_history.php
Строк: 32
<?php
declare(strict_types=1);
use IlluminateDatabaseMigrationsMigration;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateSupportFacadesDB;
use IlluminateSupportFacadesSchema;
return new class extends Migration {
public function up(): void
{
Schema::dropIfExists('login');
DB::table('settings')
->where('name', 'loginauthlist')
->delete();
}
public function down(): void
{
Schema::create('login', static function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('user_id');
$table->string('ip', 45)->default('');
$table->string('brow', 250)->default('');
$table->string('type', 20)->default('');
$table->integer('created_at')->default(0);
});
}
};