Repository navigation
Restore the pruned database migration files - #1252
Open
outdooracorn wants to merge 1 commit into
Open
outdooracorn wants to merge 1 commit into
outdooracorn wants to merge 1 commit into
Conversation
outdooracorn
added this pull request to stack #1254
September 20, 2026 11:28
outdooracorn
removed this pull request from stack #1254
September 21, 2026 03:49
outdooracorn
added this pull request to stack #1259
September 21, 2026 03:50
outdooracorn
force-pushed
the
ollie-restore-database-migrations
branch
from
October 8, 2026 14:59
b4015d1 to
29c90c1
Compare
Restore the pruned database migration files to make discovery of past migrations easier. The generated schema file will still be used on installs where no migrations have been executed. In 1cd71f4, the `php artisan schema:dump --prune` command was run, to squash database migrations into a schema file[1]. This was done as part of the Laravel 10.x -> 11.x migration, in order to avoid having to update any existing migrations that use the `->change()` method[2]. The `--prune` option removes all existing migrations that are squashed into the schema file. This option is not required by the 11.x migration docs[2], and makes it harder to view historical migrations. From the Laravel 11.x docs on Squashing Migrations[1]: > Now, when you attempt to migrate your database and no other migrations have been executed, Laravel will first execute the SQL statements in the schema file of the database connection you are using. After executing the schema file's SQL statements, Laravel will execute any remaining migrations that were not part of the schema dump. Therefore, this only has an impact on local development/CI, and there is no issue with having both the migration and schema files present in the repo. [1]: https://laravel.com/framework/docs/11.x/migrations#squashing-migrations [2]: https://laravel.com/framework/docs/11.x/upgrade#modifying-columns Bug: T440599
outdooracorn
force-pushed
the
ollie-restore-database-migrations
branch
from
October 8, 2026 15:01
29c90c1 to
3e923b9
Compare
deer-wmde
approved these changes
Oct 9, 2026
deer-wmde
left a comment
Contributor
There was a problem hiding this comment.
I tested it with minikube and skaffold and did spot a INFO Nothing to migrate. in the logs ✔️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restore the pruned database migration files to make discovery of past migrations easier. The generated schema file will still be used on installs where no migrations have been executed.
In 1cd71f4, the
php artisan schema:dump --prunecommand was run, to squash database migrations into a schema file1. This was done as part of the Laravel 10.x -> 11.x migration, in order to avoid having to update any existing migrations that use the->change()method2.The
--pruneoption removes all existing migrations that are squashed into the schema file. This option is not required by the 11.x migration docs2, and makes it harder to view historical migrations.From the Laravel 11.x docs on Squashing Migrations1:
Therefore, this only has an impact on local development/CI, and there is no issue with having both the migration and schema files present in the repo.
Bug: T440599