diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-10-19 15:40:03 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-10-19 15:40:03 +0400 |
commit | 76c4e80e5a1b59efeeaf7797d9c08081b7a66c5f (patch) | |
tree | ffc5e72a54b1fe1289038e934fb20eb6c1431b4f /priv | |
parent | 2b58b0dbce36042a8acbb41a8ddc8696d2e00d0e (diff) | |
parent | 0495a07dc77d81abf46cbe166ae3fec14f705809 (diff) | |
download | pleroma-76c4e80e5a1b59efeeaf7797d9c08081b7a66c5f.tar.gz pleroma-76c4e80e5a1b59efeeaf7797d9c08081b7a66c5f.zip |
Merge branch 'develop' into mutes-blocks-pagination
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20201013141127_refactor_locked_user_field.exs | 15 | ||||
-rw-r--r-- | priv/repo/migrations/20201013144052_refactor_discoverable_user_field.exs | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/priv/repo/migrations/20201013141127_refactor_locked_user_field.exs b/priv/repo/migrations/20201013141127_refactor_locked_user_field.exs new file mode 100644 index 000000000..6cd23dbac --- /dev/null +++ b/priv/repo/migrations/20201013141127_refactor_locked_user_field.exs @@ -0,0 +1,15 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Repo.Migrations.RefactorLockedUserField do + use Ecto.Migration + + def up do + execute("ALTER TABLE users RENAME COLUMN locked TO is_locked;") + end + + def down do + execute("ALTER TABLE users RENAME COLUMN is_locked TO locked;") + end +end diff --git a/priv/repo/migrations/20201013144052_refactor_discoverable_user_field.exs b/priv/repo/migrations/20201013144052_refactor_discoverable_user_field.exs new file mode 100644 index 000000000..3fdc190cc --- /dev/null +++ b/priv/repo/migrations/20201013144052_refactor_discoverable_user_field.exs @@ -0,0 +1,15 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Repo.Migrations.RefactorDiscoverableUserField do + use Ecto.Migration + + def up do + execute("ALTER TABLE users RENAME COLUMN discoverable TO is_discoverable;") + end + + def down do + execute("ALTER TABLE users RENAME COLUMN is_discoverable TO discoverable;") + end +end |