A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.gitlab.com/development/database/migration_squashing/ below:

Migration Squashing | GitLab Docs

Help us learn about your current experience with the documentation.

Take the survey

.

Migration Squashing

Migration squashing

History

Migration squashing combines multiple database migrations into a single schema definition to improve database setup performance and maintain a manageable migration history.

When to use migration squashing

Use migration squashing at the following times:

Squash migrations

To squash migrations from a previous version (such as 16.10), run:

bundle exec rake "gitlab:db:squash[origin/16-10-stable-ee]"

This Rake task:

  1. Removes all migrations from the previous version
  2. Updates the schema version references in relevant files
  3. Cleans up finalized batched background migrations
  4. Updates CI configuration for database rollbacks
Parameters Parameter Description [origin/16-10-stable-ee] The Git reference to use as a baseline for migration squashing. This should be the stable branch of the previous version. Troubleshooting Missing schema references

If you encounter errors related to missing schema references, check:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4