Skip to content
Snippets Groups Projects

Improve migration for Multipple issue assignee feature

Merged Valery Sizov requested to merge fix_assignee_yourick_approach into master
All threads resolved!

What does this MR do?

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

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
  • Valery Sizov
  • Author Contributor

    @yorickpeterse We're creating table with create table AS which basically does not let us to adjust the schema

  • Author Contributor

    OK, we can alter the table in a post-migration

  • Valery Sizov added 1 commit

    added 1 commit

    • 7ec034b2 - Improve migration for Multipple issue assignee feature

    Compare with previous version

  • Valery Sizov added 17 commits

    added 17 commits

    Compare with previous version

  • Valery Sizov added 1 commit

    added 1 commit

    • 95fba9c4 - Improve migration for Multipple issue assignee feature

    Compare with previous version

  • Valery Sizov added 1 commit

    added 1 commit

    • 0090f750 - Improve migration for Multipple issue assignee feature

    Compare with previous version

  • Valery Sizov resolved all discussions

    resolved all discussions

  • Valery Sizov mentioned in merge request !11406 (closed)

    mentioned in merge request !11406 (closed)

  • yorickpeterse-staging
  • yorickpeterse-staging
  • @vsizov I can't quite make it out based on the migration names, but are we 100% the order is still correct with some of them having been renamed? Other than that I have some picky comments, but nothing too serious.

  • yorickpeterse-staging added ~874211 ~149423 database labels

    added ~874211 ~149423 database labels

  • yorickpeterse-staging changed milestone to %9.2

    changed milestone to %9.2

  • @selfup @timothyandrew Just in case you're not aware of this (I think the two of you are), but once this MR is merged this should be picked into the RC and released.

  • Author Contributor

    @yorickpeterse I have not renamed any migration, this is how the diff is shown.

    Edited by Valery Sizov
  • mentioned in issue #32372 (closed)

  • Valery Sizov resolved all discussions

    resolved all discussions

  • Valery Sizov added 1 commit

    added 1 commit

    • f89faf14 - Improve migration for Multipple issue assignee feature

    Compare with previous version

  • yorickpeterse-staging approved this merge request

    approved this merge request

  • yorickpeterse-staging marked the checklist item Changelog entry added, if necessary as completed

    marked the checklist item Changelog entry added, if necessary as completed

  • yorickpeterse-staging marked the checklist item Documentation created/updated as completed

    marked the checklist item Documentation created/updated as completed

  • yorickpeterse-staging marked the checklist item API support added as completed

    marked the checklist item API support added as completed

  • yorickpeterse-staging marked the checklist item API support added as incomplete

    marked the checklist item API support added as incomplete

  • yorickpeterse-staging marked the checklist item Conform by the merge request performance guides as completed

    marked the checklist item Conform by the merge request performance guides as completed

  • yorickpeterse-staging marked the checklist item Conform by the style guides as completed

    marked the checklist item Conform by the style guides as completed

  • yorickpeterse-staging marked the checklist item Branch has no merge conflicts with master (if it does - rebase it please) as completed

    marked the checklist item Branch has no merge conflicts with master (if it does - rebase it please) as completed

  • marked the checklist item Squashed related commits together as completed

  • Author Contributor

    Rollback for MySQL is broken

    Mysql2::Error: Error on rename of './gitlabhq_development/#sql-ac69_26' to './gitlabhq_development/issue_assignees' (errno: 150 - Foreign key constraint is incorrectly formed): DROP INDEX `index_issue_assignees_on_issue_id_and_user_id` ON `issue_assignees`/Users/valery/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in `query'
    Edited by Valery Sizov
  • Valery Sizov added 1 commit

    added 1 commit

    • 793b9a5c - Improve migration for Multipple issue assignee feature

    Compare with previous version

  • Author Contributor

    OK, it's ready to go.

  • Douwe Maan approved this merge request

    approved this merge request

  • Douwe Maan enabled an automatic merge when the pipeline for 793b9a5c succeeds

    enabled an automatic merge when the pipeline for 793b9a5c succeeds

  • merged

  • Douwe Maan mentioned in commit c7a7fc17

    mentioned in commit c7a7fc17

  • Douwe Maan mentioned in commit 5e69a4b9

    mentioned in commit 5e69a4b9

  • Picked into 9-2-stable, will go into 9.2.0-rc3.

    This was picked a while ago. Sorry for the late update :P

    Edited by username-removed-642931
  • Please register or sign in to reply
    Loading