Commit e76d8b90 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add author/authorname check constraint for new installs


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 7c9e888e
......@@ -583,6 +583,10 @@ function core_postinst() {
(owner IS NULL AND "group" IS NOT NULL AND institution IS NULL) OR
(owner IS NULL AND "group" IS NULL AND institution IS NOT NULL)
)');
execute_sql('ALTER TABLE {artefact} ADD CHECK (
(author IS NOT NULL AND authorname IS NULL ) OR
(author IS NULL AND authorname IS NOT NULL)
)');
set_remoteavatars_default();
reload_html_filters();
......
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