Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

22 řádky
447B

  1. defmodule Pleroma.Repo.Migrations.MakeFollowingPostgresArray do
  2. use Ecto.Migration
  3. def up do
  4. alter table(:users) do
  5. add(:following_temp, {:array, :string})
  6. end
  7. execute("""
  8. update users set following_temp = array(select jsonb_array_elements_text(following));
  9. """)
  10. alter table(:users) do
  11. remove(:following)
  12. end
  13. rename(table(:users), :following_temp, to: :following)
  14. end
  15. def down, do: :ok
  16. end