1 defmodule Pleroma.Repo.Migrations.AddFeaturedAddressToUsers do
6 add(:featured_address, :string)
9 create(index(:users, [:featured_address]))
13 update users set featured_address = concat(ap_id, '/collections/featured') where local = true and featured_address is null;
19 alter table(:users) do
20 remove(:featured_address)