20200811143147_ap_id_not_null.exs 357 Bytes
Newer Older
1
2
3
defmodule Pleroma.Repo.Migrations.ApIdNotNull do
  use Ecto.Migration

lain's avatar
lain committed
4
5
  require Logger

6
  def up do
lain's avatar
lain committed
7
8
9
    Logger.warn(
      "If this migration fails please open an issue at https://git.pleroma.social/pleroma/pleroma/-/issues/new \n"
    )
feld's avatar
feld committed
10

11
12
13
14
15
16
17
18
19
    alter table(:users) do
      modify(:ap_id, :string, null: false)
    end
  end

  def down do
    :ok
  end
end