Add attribute_changes column to activity_log table to fix SQLSTATE[42S22] error

This commit is contained in:
root
2026-05-23 19:58:48 +02:00
parent 0c15e54b81
commit 8c49a1138c
@@ -0,0 +1,28 @@
<?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('activity_log', function (Blueprint $table) {
$table->json('attribute_changes')->nullable()->after('log_name');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('activity_log', function (Blueprint $table) {
//
});
}
};