PostreSQL migration broken

Hi, after mistakenly upgrading Gitlab from 12 to 14 i have been trying to repair it (was missing log-files and folders like “/opt/gitlab/sv/redis/log/config”), and i added those and one by one the services kept coming online, except I cant got to our Gitlab’s URL at all and the log spits out about missing columns in PostreSQL?

I am running this in a Docker-compose setup.

gitlab_1  | 2022-05-01_21:36:27.23345 ERROR:  column namespaces.plan_id does not exist at character 192
gitlab_1  | 2022-05-01_21:36:27.23346 STATEMENT:  SELECT COUNT(*) FROM projects INNER JOIN project_mirror_data ON project_mirror_data.project_id = projects.id
gitlab_1  | 2022-05-01_21:36:27.23346   INNER JOIN namespaces ON projects.namespace_id = namespaces.id
gitlab_1  | 2022-05-01_21:36:27.23346   LEFT JOIN plans ON namespaces.plan_id = plans.id
gitlab_1  | 2022-05-01_21:36:27.23347    WHERE projects.mirror = true
gitlab_1  | 2022-05-01_21:36:27.23347   AND project_mirror_data.retry_count <= 14
gitlab_1  | 2022-05-01_21:36:27.23347   AND (projects.visibility_level = 20 OR plans.name IN ('early_adopter', 'bronze', 'silver', 'gold'))
gitlab_1  | 2022-05-01_21:36:27.23347 
gitlab_1  | 2022-05-01_21:36:27.23349   AND project_mirror_data.status = 'started'
gitlab_1  | 2022-05-01_21:36:27.23349   ;