OwlCyberSecurity - MANAGER
Edit File: 2022_08_15_155651_create_log_errors_table.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. * * @return void */ public function up() { Schema::connection('mysql_log')->create('log_errors', function (Blueprint $table) { $table->id(); $table->integer('user_id')->nullable(); $table->string('ip', 20)->nullable(); $table->string('url', 2000); $table->text('message'); $table->text('stack'); $table->softDeletes(); $table->timestamp('inserted_at')->default(\Illuminate\Support\Facades\DB::raw('CURRENT_TIMESTAMP')); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('log_errors'); } };