Merge branch 'develop' into feature/account-export
[akkoma] / priv / repo / migrations / 20201013141127_refactor_locked_user_field.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Repo.Migrations.RefactorLockedUserField do
6 use Ecto.Migration
7
8 def up do
9 execute("ALTER TABLE users RENAME COLUMN locked TO is_locked;")
10 end
11
12 def down do
13 execute("ALTER TABLE users RENAME COLUMN is_locked TO locked;")
14 end
15 end