porfavor hacer la migracion

This commit is contained in:
Felipe
2024-03-01 10:46:35 -05:00
parent df673cbc65
commit accc509652
7 changed files with 186 additions and 111 deletions
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('log_historial', function (Blueprint $table) {
$table->id();
$table->text('detalle');
$table->unsignedBigInteger('user_id');
$table->timestamps();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
});
}
public function down()
{
Schema::dropIfExists('log_historial');
}
};