dcblogdev / laravel-microsoft-graph

Laravel package for Microsoft Graph API (Microsoft365)
https://dcblog.dev/docs/laravel-microsoft-graph
Other
120 stars 51 forks source link

Don't run migrations automatically #63

Closed marijnhurkens closed 1 year ago

marijnhurkens commented 1 year ago

We have an application that uses a multi-tenant database setup, which means each tenant has their own database. Currently, this package always runs the migrations when running php artisan migrate. We don't want this table migrated in the central database but in the tenant database. Currently, I cannot prevent it from running.

Most packages give the user the option to publish the migrations and then run then when needed, I think this package should follow this convention.

marijnhurkens commented 1 year ago

Or maybe an ignoreMigrations() method like in Laravel Passport is a better solution?

dcblogdev commented 1 year ago

thanks, I've been meaning to get back to this to sort it out, appreciate it.