rinvex / laravel-subscriptions

⚠️ [ABANDONED] Rinvex Subscribable is a flexible plans and subscription management system for Laravel, with the required tools to run your SAAS like services efficiently. It's simple architecture, accompanied by powerful underlying to afford solid platform for your business.
MIT License
727 stars 347 forks source link

Wrong morph columns name of migrated table #155

Closed YeftaAW closed 3 years ago

YeftaAW commented 3 years ago

When I run php artisan migrate, I don't know why, but the result of this line: $table->morphs('subscriber'); is creating user_type and user_id instead of subscriber_id and subscriber_type. on plan_subscriptions table. I didn't edit anything.

abanghendri commented 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?

Omranic commented 3 years ago

@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.