Matt Seymour

Whilst upgrading between Gitlab 6.x to 7.7 an error occurs because of a missing database migration.

After successfully running:

gitlab-rake db:migrate

I opened the webserver logs to see 500 errors from from the /projects/ url.

ActionView::Template::Error (PG::Error: ERROR:  column projects.imported does not exist

It looks as though whilst the migrations successfully complete they miss this one crucial migration.

Solution: Open your database connection and run the command.

ALTER TABLE projects ADD COLUMN "imported" BOOLEAN DEFAULT FALSE NOT NULL;