Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85830549
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
596 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/priv/repo/migrations/20170916090107_add_fts_index_to_activities.exs b/priv/repo/migrations/20170916090107_add_fts_index_to_activities.exs
new file mode 100644
index 000000000..c17da8309
--- /dev/null
+++ b/priv/repo/migrations/20170916090107_add_fts_index_to_activities.exs
@@ -0,0 +1,8 @@
+defmodule Pleroma.Repo.Migrations.AddFTSIndexToActivities do
+ use Ecto.Migration
+ @disable_ddl_transaction true
+
+ def change do
+ create index(:activities, ["(to_tsvector('english', data->'object'->>'content'))"], concurrently: true, using: :gin, name: :activities_fts)
+ end
+end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 1, 5:24 AM (16 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802537
Default Alt Text
(596 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline