Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20171109091239_add_actor_to_activity.exs
1 defmodule Pleroma.Repo.Migrations.AddActorToActivity do
2 use Ecto.Migration
3
4 @disable_ddl_transaction true
5
6 def up do
7 alter table(:activities) do
8 add(:actor, :string)
9 end
10
11 create(index(:activities, [:actor, "id DESC NULLS LAST"], concurrently: true))
12 end
13
14 def down do
15 drop_if_exists(index(:activities, [:actor, "id DESC NULLS LAST"]))
16
17 alter table(:activities) do
18 remove(:actor)
19 end
20 end
21 end