Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
2bc2b321
Commit
2bc2b321
authored
Aug 13, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
priv/repo/migrations/20200811143147_ap_id_not_null.exs
0 → 100644
View file @
2bc2b321
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment