migrations: add index creation migration and recipients_to/cc removal migration
This commit is contained in:
parent
29b5e30c46
commit
1a70d41f8e
|
@ -0,0 +1,8 @@
|
||||||
|
defmodule Pleroma.Repo.Migrations.ActivitiesAddToCcIndices do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
create index(:activities, ["(data->'to')"], name: :activities_to_index, using: :gin)
|
||||||
|
create index(:activities, ["(data->'cc')"], name: :activities_cc_index, using: :gin)
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,10 @@
|
||||||
|
defmodule Pleroma.Repo.Migrations.RemoveRecipientsToAndCcFieldsFromActivities do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
alter table(:activities) do
|
||||||
|
remove :recipients_to
|
||||||
|
remove :recipients_cc
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue