Laravel-activitylog: Adding a new column for events

Created on 25 Feb 2020  路  11Comments  路  Source: spatie/laravel-activitylog

Good day, am proposing a new column for storing the type of event carried out, i.e deleted, updated, created. instead of storing the event by default in the description column.

enhancement good first issue help wanted

All 11 comments

Hey,
sorry for the delay. I welcome this change. To make it compatible with everything the column should be nullable and there should be a method on the ActivityLogger to allow an event type on custom activities.

I鈥檇 love to work on this.

@AbdullahFaqeir any further questions? Or is everything clear and you want to start?
Something special: like before I think that we won't create a new migration file but add it to the existing and mention it in the changelog.
So just add the column to the existing migration file.
Or should we start with a new migration for this @freekmurze ?

I believe the idea is pretty clear so far, and while planning it - if anything new popped up - I鈥檒l surely let you know. Regarding the migration, I鈥檇 suggest adding a new migration file which will only alter the current table adding the new column to allow current users to roll the update easily.

You are right, the last changes were only new indexes and changed column types. A new column should be done the right way! :+1:

is anyone intending to submit a PR?? or should i proceed to to submit a PR

@AbdullahFaqeir has said that he wants to create a PR.

oh great

hey @AbdullahFaqeir ,
I only want to inform you that I will release it if you finish the PR before I'm done with the new v4 #699 release (1-2 weeks is my first timing).
If you don't have time, don't want to or anything else I will do it in the new v4.

@Gummibeer at first please allow me to apologize for taking so long to reply, I'll be working on it and will submit my PR ASAP

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marky291 picture marky291  路  4Comments

TheFrankman picture TheFrankman  路  5Comments

uyab picture uyab  路  4Comments

ianrussel picture ianrussel  路  5Comments

lucianobosco picture lucianobosco  路  5Comments