Upgrade from gitlab 15.4.6 to 15.11.13 finished with DB migration error

Problem to solve

Describe your question in as much detail as possible:
After upgrade my current GitLab Omnibus 15.4.6 to 15.11.13 I got error in the PG when watching the logs

  • What are you seeing, and how does that differ from what you expect to see?
    No logs at all
  • Consider including screenshots, error messages, and/or other helpful visuals
2024-05-16_05:48:31.67301 ERROR:  column "consume_after" does not exist at character 253
2024-05-16_05:48:31.67304 STATEMENT:  /*application:sidekiq,correlation_id:57a414a152c593ce06eb370e221217cf,jid:682d8280f23711efe02315f1,endpoint_id:Users::MigrateRecordsToGhostUserInBatchesWorker,db_config_name:main*/ SELECT "ghost_user_migrations".* FROM "ghost_user_migrations" ORDER BY "consume_after" ASC, "ghost_user_migrations"."id" ASC LIMIT 1000
2024-05-16_05:50:05.46217 ERROR:  column "delete_started_at" does not exist at character 262
2024-05-16_05:50:05.46220 STATEMENT:  /*application:sidekiq,correlation_id:1347f469ce189ad56fe3f7b356b97203,jid:41afb577ce41a3541258d2bf,endpoint_id:ContainerRegistry::CleanupWorker,db_config_name:main*/ SELECT COUNT(*) FROM "container_repositories" WHERE "container_repositories"."status" = 2 AND (delete_started_at < '2024-05-16 05:20:05.458929')
2024-05-16_05:50:06.70082 ERROR:  column "consume_after" does not exist at character 253
2024-05-16_05:50:06.70084 STATEMENT:  /*application:sidekiq,correlation_id:8f38fd3683f2ad6982b2b5960aa6330b,jid:2f91440e019ffa8dc1aea4da,endpoint_id:Users::MigrateRecordsToGhostUserInBatchesWorker,db_config_name:main*/ SELECT "ghost_user_migrations".* FROM "ghost_user_migrations" ORDER BY "consume_after" ASC, "ghost_user_migrations"."id" ASC LIMIT 1000

Steps to reproduce

By gitlab upgrade path I’ve just used apt-get install gitlab-ee=15.11.13-ee.0 command
when it finished I watched the logs and saw the error above.

Configuration

Provide screenshots from the GitLab UI showing relevant configuration, if applicable.

On self-managed instances, add the relevant configuration settings or changes.
OS release: Debian 11

Versions

Please select whether options apply, and add the version information.