Data type problem in subject_id and causer_id #932
-
I'm going to change the primary key to uuid for some tables. It can cause the mixed data type (int/string) for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey, Instead of |
Beta Was this translation helpful? Give feedback.
Hey,
yes it makes things A LOT easier if all your PKs have the same type. You can change the
causer
andsubject
relationship columns in the published package migration.laravel-activitylog/database/migrations/CreateActivityLogTable.php.stub
Lines 15 to 16 in 0da6f05
Instead of
nullableMorph()
there should also be anullableUuidMorph()
or something like that.