Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #5128

Closed
Open
Created Sep 19, 2013 by Administrator@rootOwner

Update from 5.4 to 6.x failed

Created by: JasonMing

Update from 5-4-stable to 6-0-stable, failed on bundle exec rake db:migrate RAILS_ENV=production.

[git@localhost gitlab]$ bundle exec rake db:migrate RAILS_ENV=production
==  CreateUsersGroups: migrating ==============================================
-- create_table(:users_groups)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql2::Error: Table 'users_groups' already exists: CREATE TABLE `users_groups` (`id` int(11) DEFAULT NULL auto_incremen
t PRIMARY KEY, `group_access` int(11) NOT NULL, `group_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `created_at` da
tetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecor
d-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'

Seems the users_groups table has already exists ?

Assignee
Assign to
Time tracking