Public
Authored by Michał "rysiek" Woźniak

`access_level' traceback

Guessing some migrations failed at some point during the upgrade and new tables did not get populated.

Edited
3.33 KB
  • Looks like these are the migrations that failed (silently, it seems): https://gitlab.com/gitlabproject_s/gitlab-ce/commit/f1e46d1e63faf63f1dc9960c5f28d5260dfc84db

  • Solved:

    INSERT into protected_branch_push_access_levels (protected_branch_id, access_level, created_at, updated_at)
            SELECT id, 40, now(), now()
              FROM protected_branches;
    
    INSERT into protected_branch_merge_access_levels (protected_branch_id, access_level, created_at, updated_at)
            SELECT id, 40, now(), now()
              FROM protected_branches;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment