diff options
Diffstat (limited to 'priv/repo/migrations')
3 files changed, 24 insertions, 0 deletions
diff --git a/priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs b/priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs new file mode 100644 index 000000000..234d33735 --- /dev/null +++ b/priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs @@ -0,0 +1,9 @@ +defmodule Pleroma.Repo.Migrations.AddFollowerAddressIndexToUsers do + use Ecto.Migration + + @disable_ddl_transaction true + def change do + create index(:users, [:follower_address], concurrently: true) + create index(:users, [:following], concurrently: true, using: :gin) + end +end diff --git a/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs b/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs new file mode 100644 index 000000000..70f2c9fe6 --- /dev/null +++ b/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.DropLocalIndexOnActivities do + use Ecto.Migration + + def change do + drop index(:users, [:local]) + end +end diff --git a/priv/repo/migrations/20180327175831_actually_drop_local_index.exs b/priv/repo/migrations/20180327175831_actually_drop_local_index.exs new file mode 100644 index 000000000..2da65689c --- /dev/null +++ b/priv/repo/migrations/20180327175831_actually_drop_local_index.exs @@ -0,0 +1,8 @@ +defmodule Pleroma.Repo.Migrations.ActuallyDropLocalIndex do + use Ecto.Migration + + def change do + create index(:users, [:local]) + drop_if_exists index("activities", :local) + end +end |