fixes #1144
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
<%= form_tag(artists_path, :method => :get) do %>
|
<%= form_tag(artists_path, :method => :get) do %>
|
||||||
<%= text_field "search", "name" %>
|
<%= text_field "search", "name", :id => "quicksearch_name" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<%= form_tag(pools_path, :method => :get) do %>
|
<%= form_tag(pools_path, :method => :get) do %>
|
||||||
<%= text_field "search", "name_matches" %>
|
<%= text_field "search", "name_matches", :id => "quick_search_name_matches" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<%= form_tag(tags_path, :method => :get) do %>
|
<%= form_tag(tags_path, :method => :get) do %>
|
||||||
<%= text_field "search", "name_matches" %>
|
<%= text_field "search", "name_matches", :id => "quick_search_name_matches" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<%= form_tag(wiki_pages_path, :method => :get) do %>
|
<%= form_tag(wiki_pages_path, :method => :get) do %>
|
||||||
<%= text_field "search", "title" %>
|
<%= text_field "search", "title", :id => "quick_search_title" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
class ChangeSourcePatternIndexOnPosts < ActiveRecord::Migration
|
class ChangeSourcePatternIndexOnPosts < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
execute "set statement_timeout = 0"
|
execute "set statement_timeout = 0"
|
||||||
begin
|
execute "DROP INDEX index_posts_on_pixiv_suffix"
|
||||||
execute "DROP INDEX index_posts_on_pixiv_suffix"
|
execute "DROP INDEX index_posts_on_source_pattern"
|
||||||
execute "DROP INDEX index_posts_on_source_pattern"
|
|
||||||
rescue Exception
|
|
||||||
end
|
|
||||||
execute "CREATE FUNCTION SourcePattern(src text) RETURNS text AS $$
|
execute "CREATE FUNCTION SourcePattern(src text) RETURNS text AS $$
|
||||||
BEGIN
|
BEGIN
|
||||||
RETURN regexp_replace(src, '^[^/]*(//)?[^/]*\.pixiv\.net/img.*(/[^/]*/[^/]*)$', E'pixiv\\\\2');
|
RETURN regexp_replace(src, '^[^/]*(//)?[^/]*\.pixiv\.net/img.*(/[^/]*/[^/]*)$', E'pixiv\\\\2');
|
||||||
|
|||||||
Reference in New Issue
Block a user