Skip to content
Snippets Groups Projects

Update 20130419190306_allow_merges_for_forks.rb

Merged gitlab-qa-bot requested to merge github/fork/dsekretov/patch-1 into 6-0-stable

Created by: dsekretov

Postgress db migrate fails.(5.4=>6.0)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: dsekretov

    • Linux mint 14
    • PostgreSQL 9.1.9

    == AllowMergesForForks: migrating ============================================ -- add_column(:merge_requests, :target_project_id, :integer, {:null=>false}) rake aborted! An error has occurred, this and all later migrations canceled:

    PG::Error: ERROR: column "target_project_id" contains null values
    ALTER TABLE "merge_requests" ADD COLUMN "target_project_id" integer NOT NULL/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `exec' .........

    By Administrator on 2013-08-23T11:45:43 (imported from GitLab project)

    By Administrator on 2013-08-23T11:45:43 (imported from GitLab)

  • Created by: ulfklose

    • Ubuntu 12.04
    • PostgreSQL 9.1.9

    Same problem over here. Just did the whole upgrade path from 5.0 to 5.1, 5.1 to 5.2, 5.2 to 5.3 and 5.3 to 5.4. Tried upgrading from 5.4 to 6.0 after the other upgrades were successful. Upgrading to 6.0 won't do because of the migration error.

    By Administrator on 2013-08-24T22:05:39 (imported from GitLab project)

    By Administrator on 2013-08-24T22:05:39 (imported from GitLab)

  • Created by: begnini

    Me too, migration from 5.4 to 6.0

    • Debian 6.0.7
    • PostgreSQL 8.4

    By Administrator on 2013-08-25T17:05:00 (imported from GitLab project)

    By Administrator on 2013-08-25T17:05:00 (imported from GitLab)

Please register or sign in to reply
Loading