I’am upgrading gitlab comuniti editon to 10.8.3 and it fails on db:migrate phase with error message: “ERROR: column “artifacts_file_store” of relation “ci_builds” already exists”.
Full log of db:migrate:
== 20170601163708 AddArtifactsStoreToCiBuild: migrating =======================
– add_column(:ci_builds, :artifacts_file_store, :integer)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::DuplicateColumn: ERROR: column “artifacts_file_store” of relation “ci_builds” already exists
: ALTER TABLE “ci_builds” ADD “artifacts_file_store” integer
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/postgresql_limit_fix.rb:6:in add_column' /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb:7:in
change’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’
Caused by:
ActiveRecord::StatementInvalid: PG::DuplicateColumn: ERROR: column “artifacts_file_store” of relation “ci_builds” already exists
: ALTER TABLE “ci_builds” ADD “artifacts_file_store” integer
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/postgresql_limit_fix.rb:6:in add_column' /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb:7:in
change’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’
Caused by:
PG::DuplicateColumn: ERROR: column “artifacts_file_store” of relation “ci_builds” already exists
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/postgresql_limit_fix.rb:6:in add_column' /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb:7:in
change’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’
Tasks: TOP => db:migrate
(See full trace by running task with --trace)