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ů.

24 řádky
472B

  1. defmodule Pleroma.Repo.Migrations.AddFeaturedAddressToUsers do
  2. use Ecto.Migration
  3. def up do
  4. alter table(:users) do
  5. add(:featured_address, :string)
  6. end
  7. create(index(:users, [:featured_address]))
  8. execute("""
  9. update users set featured_address = concat(ap_id, '/collections/featured') where local = true and featured_address is null;
  10. """)
  11. end
  12. def down do
  13. alter table(:users) do
  14. remove(:featured_address)
  15. end
  16. end
  17. end