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');