Commit Graph

3 Commits

Author SHA1 Message Date
Nick Thomas eb21f93267 Only use DROP INDEX CONCURRENTLY on postgreql 9.2+ 2017-05-25 18:12:42 +01:00
Sean McGivern 844142e975 Fix routes index migration
For example:

    index_exists?(:routes, name: INDEX_NAME) # => false
    index_exists?(:routes, :path, name: INDEX_NAME) # => true
2017-03-21 18:17:29 +00:00
Yorick Peterse 69af06dda6
Add LIKE index for routes.path
Nested groups support uses queries along the lines of `path LIKE 'X/%'`.
For these queries to use an index on PostgreSQL we need to use either
the varchar_pattern_ops or text_pattern_ops operator class.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/29554
2017-03-21 11:49:24 +01:00