Add support for automatically pruning activity logs
This commit is contained in:
parent
9b7af02690
commit
e15985ea39
4 changed files with 41 additions and 6 deletions
|
@ -15,7 +15,7 @@ class CreateActivityLogActorsTable extends Migration
|
|||
{
|
||||
Schema::create('activity_log_subjects', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('activity_log_id')->references('id')->on('activity_logs');
|
||||
$table->foreignId('activity_log_id')->references('id')->on('activity_logs')->cascadeOnDelete();
|
||||
$table->numericMorphs('subject');
|
||||
});
|
||||
}
|
||||
|
@ -27,6 +27,6 @@ class CreateActivityLogActorsTable extends Migration
|
|||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('activity_log_subject');
|
||||
Schema::dropIfExists('activity_log_subjects');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue