mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
API: Added audit log list endpoint
Not yested covered with testing. Changes database columns for more presentable names and for future use to connect additional model types. For #4316
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
<?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('activities', function (Blueprint $table) {
|
||||
$table->renameColumn('entity_id', 'loggable_id');
|
||||
$table->renameColumn('entity_type', 'loggable_type');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('activities', function (Blueprint $table) {
|
||||
$table->renameColumn('loggable_id', 'entity_id');
|
||||
$table->renameColumn('loggable_type', 'entity_type');
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user