Closed YeftaAW closed 3 years ago
quite simillar to me,
in my case, the migration always produce subscriber_id
column with bigint even though I change $table->morphs('subscriber');
to $table->uuidMorphs('subscriber');
How to resolve this?
@yefta-me @abanghendri have you exported/published migrations?
If yes, then maybe you're running an outdated migrations because this field subscriber
has been changed in a previous release. You'll need to remove your exported/published migrations and run the default ones, or republish again first.
When I run
php artisan migrate
, I don't know why, but the result of this line:$table->morphs('subscriber');
is creatinguser_type
anduser_id
instead ofsubscriber_id
andsubscriber_type
. onplan_subscriptions
table. I didn't edit anything.