From 4098d91f8fdec540c67e10e92bf27199d9155e12 Mon Sep 17 00:00:00 2001 From: nanaya Date: Wed, 30 Mar 2016 15:38:05 +0900 Subject: [PATCH] Remove custom text search --- ...63707_drop_danbooru_text_search_configuration.rb | 7 +++++++ db/structure.sql | 13 ++----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 db/migrate/20160330063707_drop_danbooru_text_search_configuration.rb diff --git a/db/migrate/20160330063707_drop_danbooru_text_search_configuration.rb b/db/migrate/20160330063707_drop_danbooru_text_search_configuration.rb new file mode 100644 index 00000000..46e5d399 --- /dev/null +++ b/db/migrate/20160330063707_drop_danbooru_text_search_configuration.rb @@ -0,0 +1,7 @@ +class DropDanbooruTextSearchConfiguration < ActiveRecord::Migration + def up + execute <<-SQL.strip_heredoc + DROP TEXT SEARCH CONFIGURATION danbooru; + SQL + end +end diff --git a/db/structure.sql b/db/structure.sql index f84702de..d83c5714 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -331,17 +331,6 @@ CREATE FUNCTION user_logs_touch(new_user_id integer, new_ip inet) RETURNS void $$; --- --- Name: danbooru; Type: TEXT SEARCH CONFIGURATION; Schema: public; Owner: - --- - -CREATE TEXT SEARCH CONFIGURATION danbooru ( - PARSER = testparser ); - -ALTER TEXT SEARCH CONFIGURATION danbooru - ADD MAPPING FOR word WITH simple; - - SET default_tablespace = ''; SET default_with_oids = false; @@ -3490,6 +3479,8 @@ INSERT INTO schema_migrations (version) VALUES ('20160329160235'); INSERT INTO schema_migrations (version) VALUES ('20160329161636'); +INSERT INTO schema_migrations (version) VALUES ('20160330063707'); + INSERT INTO schema_migrations (version) VALUES ('21'); INSERT INTO schema_migrations (version) VALUES ('22');