Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F41645735
20170620142420_add_object_activity_index_part_two.exs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
586 B
Referenced Files
None
Subscribers
None
20170620142420_add_object_activity_index_part_two.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Repo.Migrations.AddObjectActivityIndexPartTwo
do
use
Ecto.Migration
def
change
do
drop_if_exists
(
index
(
:objects
,
[
"(data->'object'->>'id')"
,
"(data->>'type')"
],
name
:
:activities_create_objects_index
)
)
create_if_not_exists
(
index
(
:activities
,
[
"(data->'object'->>'id')"
,
"(data->>'type')"
],
name
:
:activities_create_objects_index
)
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sun, Feb 15, 4:34 AM (18 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1097829
Default Alt Text
20170620142420_add_object_activity_index_part_two.exs (586 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment