Add changelog entry for hashtag following
[akkoma] / priv / repo / migrations / 20201013144052_refactor_discoverable_user_field.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Repo.Migrations.RefactorDiscoverableUserField do
6 use Ecto.Migration
7
8 def up do
9 execute("ALTER TABLE users RENAME COLUMN discoverable TO is_discoverable;")
10 end
11
12 def down do
13 execute("ALTER TABLE users RENAME COLUMN is_discoverable TO discoverable;")
14 end
15 end