Skip to content

Ensure the schema is loaded with post_migrations included

DJ Mountney requested to merge force-post-migration-dir-schema-load into master

What does this MR do?

Ensure the schema is loaded with post_migrations included

If doing a schema load, the post_migrations should also be marked as up, even if SKIP_POST_DEPLOYMENT_MIGRATIONS was set, otherwise future migration runs will be broken.

This is helpful for the installation management scripts like our own takeoff script, or the cloud native charts, as they set the variable without actually knowing if the database is being seeded or migrated.

The gitlab:db:configure rake task that this is being added to here, is what the omnibus package uses for migrations during reconfigure. And also what our kubernetes charts uses.

EE MR here: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7354

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/distribution/gitlab-operator/issues/27

Does this MR meet the acceptance criteria?

Edited by Yorick Peterse

Merge request reports