Add a check to see if GitLab database schema is aligned with GitLab version
In Support, we saw scenarios where customer accidentally upgraded to the latest GitLab version and rolled back; however database schema is still the latest version. In Detective, we can have a check where we dump database schema into a sql file and compare it to the expected schema. If the user-supplied GitLab version is 17.5, we compare the schema dump to the `db/structure.sql` for that version: https://gitlab.com/gitlab-org/gitlab/-/blob/17-5-stable-ee/db/structure.sql This process is documented in [Dump the database schema](https://docs.gitlab.com/administration/raketasks/maintenance/#dump-the-database-schema) section. Instead of using the rake task, we should find the SQL command to dump the database schema (or otherwise determine that the schema in use is not correct).
issue