Gitlab upgrade error : Your database is missing the 'parent_id' column from the 'epics' table that is present for GitLab EE with gitlab CE

Hello, I have a problem in upgrade a gitlab-ce from 11.11.5 to 12.0.3

Running handlers:
There was an error running gitlab-ctl reconfigure:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 53) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20190712-96949-ujmwy" ----
STDOUT: rake aborted!
Exception: Your database is missing the 'parent_id' column from the 'epics' table that is present for GitLab EE.
Even though it looks like you're running a CE installation, it appears
you may have installed GitLab EE at some point. To migrate to GitLab 12.0:

1. Install GitLab 11.11.3 EE
2. Install GitLab 12.0.x CE
/var/gitlab/embedded/service/gitlab-rails/db/migrate/20190402150158_backport_enterprise_schema.rb:916:in `raise_ee_migration_error!'
/var/gitlab/embedded/service/gitlab-rails/db/migrate/20190402150158_backport_enterprise_schema.rb:896:in `check_ee_columns!'
/var/gitlab/embedded/service/gitlab-rails/db/migrate/20190402150158_backport_enterprise_schema.rb:888:in `block in check_schema!'
/var/gitlab/embedded/service/gitlab-rails/db/migrate/20190402150158_backport_enterprise_schema.rb:887:in `each'
/var/gitlab/embedded/service/gitlab-rails/db/migrate/20190402150158_backport_enterprise_schema.rb:887:in `check_schema!'
/var/gitlab/embedded/service/gitlab-rails/db/migrate/20190402150158_backport_enterprise_schema.rb:120:in `up'
/var/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:56:in `block (3 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
== 20190327163904 AddNotificationEmailToNotificationSettings: migrating =======
-- add_column(:notification_settings, :notification_email, :string)
   -> 0.0062s
== 20190327163904 AddNotificationEmailToNotificationSettings: migrated (0.0063s) 

== 20190402150158 BackportEnterpriseSchema: migrating =========================
-- column_exists?(:epics, :parent_id)
   -> 0.0014s
STDERR: 
---- End output of "bash"  "/tmp/chef-script20190712-96949-ujmwy" ----
Ran "bash"  "/tmp/chef-script20190712-96949-ujmwy" returned 1

Running handlers complete
Chef Client failed. 23 resources updated in 37 seconds
Ensuring PostgreSQL is updated:Traceback (most recent call last):
	8: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'
	7: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'
	6: from /var/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'
	5: from /var/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:746:in `run'
	4: from /var/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:204:in `block in add_command_under_category'
	3: from /opt/gitlab/embedded/service/omnibus-ctl/pg-upgrade.rb:64:in `block in load_file'
	2: from /var/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:105:in `roles'
	1: from /var/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:64:in `get_node_attributes'
/var/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:52:in `parse_json_file': Attributes not found in /opt/gitlab/embedded/nodes/*******.domaine.com.json, has reconfigure been run yet? (GitlabCtl::Errors::NodeError)
Ensuring PostgreSQL is updated: NOT OK
Error ensuring PostgreSQL is updated. Please check the logs
dpkg: erreur de traitement du paquet gitlab-ce (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 gitlab-ce

What is very strange is that we don’t have gitlab-ee but gitlab-ce.

Thnaks for you’re help

Guillaume

Sorry. Resolved with : GitLab omnibus upgrade from 11.11.2-ce.0 to 12.0.0-ce.0 failed

I come cross the same problem, from ce-11.11.3 to ce-12.1.6

As far as I know, you should update from 11.11.3 to 11.11.8 first, then to 12.0.6 and then to 12.1.6.