discourse/db/migrate/20140624044600_add_raw_data_to_search.rb
Sam 3c84876660 BUGFIX: Chinese search was broken
BUGFIX: User locale was used index data
BUGFIX: missing Norwegian fulltext config
FEATURE: store the text used to index stuff in fulltext (for diagnostics / in page search)
FEATURE: re-index posts when locale changes (in bg job)
FEATURE: allow reindexing by trucating post_search_data

Note: I removed japanese specific config cause it requires custom pg config,
  happy to add it once our base docker config ships with it
2014-06-24 17:11:13 +10:00

12 lines
385 B
Ruby

class AddRawDataToSearch < ActiveRecord::Migration
def change
add_column :post_search_data, :raw_data, :text
add_column :user_search_data, :raw_data, :text
add_column :category_search_data, :raw_data, :text
add_column :post_search_data, :locale, :string
add_column :user_search_data, :locale, :text
add_column :category_search_data, :locale, :text
end
end