2022-02-25 22:11:42 -08:00
|
|
|
# Pleroma: A lightweight social networking server
|
|
|
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-11-26 12:33:27 -08:00
|
|
|
defmodule Pleroma.Repo.Migrations.AddSuggestions do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
alter table(:users) do
|
|
|
|
add(:is_suggested, :boolean, default: false, null: false)
|
|
|
|
end
|
2021-11-26 13:32:01 -08:00
|
|
|
|
|
|
|
create_if_not_exists(index(:users, [:is_suggested]))
|
2021-11-26 12:33:27 -08:00
|
|
|
end
|
|
|
|
end
|