Commit 6a6f4fd6 authored by Tiger Watson's avatar Tiger Watson

Merge branch 'remove-mysql-comments-in-models' into 'master'

Remove MySQL mention from models comments

See merge request gitlab-org/gitlab!33288
parents c2ee7845 3135bd48
......@@ -148,7 +148,7 @@ class NotesFinder
# Searches for notes matching the given query.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
def search(notes)
query = @params[:search]
......
......@@ -163,14 +163,14 @@ module Ci
# Searches for runners matching the given query.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
# This method performs a *partial* match on tokens, thus a query for "a"
# will match any runner where the token contains the letter "a". As a result
# you should *not* use this method for non-admin purposes as otherwise users
# might be able to query a list of all runners.
#
# query - The search query as a String
# query - The search query as a String.
#
# Returns an ActiveRecord::Relation.
def self.search(query)
......
......@@ -195,7 +195,7 @@ module Issuable
class_methods do
# Searches for records with a matching title.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
# query - The search query as a String
#
......@@ -219,7 +219,7 @@ module Issuable
# Searches for records with a matching title or description.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
# query - The search query as a String
# matched_columns - Modify the scope of the query. 'title', 'description' or joining them with a comma.
......
......@@ -133,7 +133,7 @@ class Label < ApplicationRecord
# Searches for labels with a matching title or description.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
# query - The search query as a String.
#
......
......@@ -100,11 +100,11 @@ class Namespace < ApplicationRecord
# Searches for namespaces matching the given query.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
# query - The search query as a String
# query - The search query as a String.
#
# Returns an ActiveRecord::Relation
# Returns an ActiveRecord::Relation.
def search(query)
fuzzy_search(query, [:name, :path])
end
......
......@@ -617,8 +617,7 @@ class Project < ApplicationRecord
# Searches for a list of projects based on the query given in `query`.
#
# On PostgreSQL this method uses "ILIKE" to perform a case-insensitive
# search. On MySQL a regular "LIKE" is used as it's already
# case-insensitive.
# search.
#
# query - The search query as a String.
def search(query, include_namespace: false)
......
......@@ -337,7 +337,7 @@ class Snippet < ApplicationRecord
class << self
# Searches for snippets with a matching title, description or file name.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
# query - The search query as a String.
#
......
......@@ -522,7 +522,7 @@ class User < ApplicationRecord
# Searches users matching the given query.
#
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
#
# query - The search query as a String
#
......@@ -565,7 +565,7 @@ class User < ApplicationRecord
# searches user by given pattern
# it compares name, email, username fields and user's secondary emails with given pattern
# This method uses ILIKE on PostgreSQL and LIKE on MySQL.
# This method uses ILIKE on PostgreSQL.
def search_with_secondary_emails(query)
return none if query.blank?
......
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