mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Add audit logs for rules.
This commit is contained in:
42
database/migrations/2022_10_01_210238_audit_log_entries.php
Normal file
42
database/migrations/2022_10_01_210238_audit_log_entries.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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::create('audit_log_entries', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->integer('auditable_id', false, true);
|
||||
$table->string('auditable_type');
|
||||
|
||||
$table->integer('changer_id', false, true);
|
||||
$table->string('changer_type');
|
||||
|
||||
$table->string('action', 255);
|
||||
$table->text('before')->nullable();
|
||||
$table->text('after')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('audit_log_entries');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user