Ensure the schema is loaded with post_migrations included
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?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides
Edited by Yorick Peterse