Commit 2bc2b321 authored by lain's avatar lain
Browse files

Merge branch 'fix/users_ap_id_not_null' into 'develop'

Ensure ap_id column in users table cannot be null

See merge request !2875
parents 5be25b3e aaf7bd89
Pipeline #29722 failed with stages
in 47 minutes and 54 seconds
defmodule Pleroma.Repo.Migrations.ApIdNotNull do
use Ecto.Migration
require Logger
def up do
Logger.warn(
"If this migration fails please open an issue at https://git.pleroma.social/pleroma/pleroma/-/issues/new \n"
)
alter table(:users) do
modify(:ap_id, :string, null: false)
end
end
def down do
:ok
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment