fix: Fixes issue #59 could not delete a user
This commit is contained in:
parent
342d2adced
commit
956ae8693f
1 changed files with 2 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ return new class extends Migration
|
||||||
Schema::create('activity_logs', function (Blueprint $table) {
|
Schema::create('activity_logs', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('user_id')->nullable()->constrained('users')
|
$table->foreignId('user_id')->nullable()->constrained('users')
|
||||||
|
->cascadeOnUpdate()
|
||||||
|
->nullOnDelete()
|
||||||
->comment('Id of the user associated, or nullable for a deleted user.');
|
->comment('Id of the user associated, or nullable for a deleted user.');
|
||||||
$table->boolean('is_anonymous')->comment('If there is no user connected when action was realised.');
|
$table->boolean('is_anonymous')->comment('If there is no user connected when action was realised.');
|
||||||
$table->boolean('is_console')->comment('If the action was realised in console.');
|
$table->boolean('is_console')->comment('If the action was realised in console.');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue