2022-02-26 07:11:42 +01:00
|
|
|
# Pleroma: A lightweight social networking server
|
|
|
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2018-12-06 18:06:50 +01:00
|
|
|
defmodule Pleroma.Repo.Migrations.AddTagsToUsers do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
alter table(:users) do
|
2019-10-08 14:16:39 +02:00
|
|
|
add(:tags, {:array, :string})
|
2018-12-06 18:06:50 +01:00
|
|
|
end
|
|
|
|
|
2019-10-08 14:16:39 +02:00
|
|
|
create_if_not_exists(index(:users, [:tags], using: :gin))
|
2018-12-06 18:06:50 +01:00
|
|
|
end
|
|
|
|
end
|