Page MenuHomePhorge

20170912114248_add_context_index.exs
No OneTemporary

Size
454 B
Referenced Files
None
Subscribers
None

20170912114248_add_context_index.exs

# 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.AddContextIndex do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create(
index(:activities, ["(data->>'type')", "(data->>'context')"],
name: :activities_context_index,
concurrently: true
)
)
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Tue, Jan 20, 1:08 PM (14 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
969024
Default Alt Text
20170912114248_add_context_index.exs (454 B)

Event Timeline