-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use with Laravel's schema:dump
command
#28
Comments
Hi @binotaliu, This is indeed a bug, the problem is that Laravel dumps the schema of your database + the data in your There are a few solutions to this problem, though I'm not sure what's the right one
I'm not quite sure what could be the best solution .... |
I would first try to discuss adding this functionality in Laravel before looking into workarounds in the package. |
Looks like someone already tried this: The SchemaLoaded is interesting though, if we can run our migrations again at that point. |
Maybe we can just delete them from |
This was a funny problem, normally v1.0.6 should fix the problem! |
@rubenvanassche The rest works pretty well, but I had to adjust configs (tenancy package and settings package) regarding file paths, don't exactly remember since that was might be a year ago, however I only put some values there, didn't change anything and didn't make any patches/workarounds/extensions. |
This is probably due to something the tenancy package, you probably should trigger this code: laravel-settings/src/LaravelSettingsServiceProvider.php Lines 68 to 93 in 4f07368
somehow for every tenant. |
Thanks for the response! |
Currently, Laravel's
schema:dump
artisan command only dumps database structure (exceptmigrations
table). If there are any settings migration, it won't be included in the dump file.How to reproduce:
make:settings-migration
schema:dump
migrate:fresh
migrate:status
. The settings migration we created in step 1 is marked asran
, but the data it created will not be included in the database.The text was updated successfully, but these errors were encountered: