move to 2.5.5
[anni] / priv / repo / migrations / 20200811143147_ap_id_not_null.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Repo.Migrations.ApIdNotNull do
6   use Ecto.Migration
7
8   require Logger
9
10   def up do
11     Logger.warn(
12       "If this migration fails please open an issue at https://git.pleroma.social/pleroma/pleroma/-/issues/new \n"
13     )
14
15     alter table(:users) do
16       modify(:ap_id, :string, null: false)
17     end
18   end
19
20   def down do
21     :ok
22   end
23 end