logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

20200811143147_ap_id_not_null.exs (519B)


  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. defmodule Pleroma.Repo.Migrations.ApIdNotNull do
  5. use Ecto.Migration
  6. require Logger
  7. def up do
  8. Logger.warning(
  9. "If this migration fails please open an issue at https://git.pleroma.social/pleroma/pleroma/-/issues/new \n"
  10. )
  11. alter table(:users) do
  12. modify(:ap_id, :string, null: false)
  13. end
  14. end
  15. def down do
  16. :ok
  17. end
  18. end