Schema Dump includes setting migrations #292
Unanswered
rabrowne85
asked this question in
Q&A
Replies: 1 comment
-
Normally we remove the settings when loading schema changes: https://github.com/spatie/laravel-settings/blob/main/src/LaravelSettingsServiceProvider.php#L66-L113 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When you use the
php artisan schema:dump
command it builds the schema file, but because the settings migrations are included in the migrations table, these are included in the schema dump. As such any 'rebuild' from the schema file doesn't run the initial settings migrations.As a work around I can 'remove' the lines from the schema file that inserts the settings migrations back in, but I'm wondering if there's another solution to this problem?
Beta Was this translation helpful? Give feedback.
All reactions