Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
507B

  1. defmodule Pleroma.Repo.Migrations.DropUsersFollowing do
  2. use Ecto.Migration
  3. # had to disable these to be able to restore `following` index concurrently
  4. # https://hexdocs.pm/ecto_sql/Ecto.Migration.html#index/3-adding-dropping-indexes-concurrently
  5. @disable_ddl_transaction true
  6. @disable_migration_lock true
  7. def change do
  8. drop(index(:users, [:following], concurrently: true, using: :gin))
  9. alter table(:users) do
  10. remove(:following, {:array, :string}, default: [])
  11. end
  12. end
  13. end