Fix DB error when trying to tag a repository
Steps to reproduce: Go to a project settings, add tags, click on save changes
Observed behavior: Error 500
PG::Error: ERROR: column "taggings_count" does not exist
LINE 1: UPDATE "tags" SET "taggings_count" = COALESCE("taggings_coun...
Ran rake acts_as_taggable_on_engine:install:migrations
, removed the first
migration that created the tags
and taggings
table, and added the rest.
- Closes #1512 (closed)
- Closes #1550 (closed)
- Closes https://github.com/gitlabhq/gitlabhq/issues/6867
- Closes https://github.com/gitlabhq/gitlabhq/issues/9194
Merge request reports
Activity
mentioned in issue #1512 (closed)
mentioned in issue #1438 (closed)
Thanks @stanhu you're the best!
@rspeicher Thanks for the review. Updated the MR for RSpec 3.
@DouweM Can you review this one? Looks like this issue affects even deleting repositories.
mentioned in issue #1550 (closed)
1 # This migration comes from acts_as_taggable_on_engine (originally 2) Good question. I left it out because it involved creating the tags table in the first place:
It looks like this is already done here:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/db/migrate/20121220064453_init_schema.rb#L199 https://gitlab.com/gitlab-org/gitlab-ce/blob/master/db/migrate/20121220064453_init_schema.rb#L186 https://gitlab.com/gitlab-org/gitlab-ce/blob/master/db/migrate/20140729145339_migrate_project_tags.rb
mentioned in commit 2f4426b7
mentioned in commit 81634bc1