- EditorController.php und SubmiotController.php: correct referenceTypes

- also in *_create_document_references_table.php correct referenceTypes
- correct LicencesTableSeeder.php: open access licences
This commit is contained in:
Arno Kaimbacher 2021-06-07 10:05:22 +02:00
parent 37c0b5e637
commit 105e31dbbd
4 changed files with 27 additions and 15 deletions

View file

@ -23,8 +23,11 @@ class CreateDocumentReferencesTable extends Migration
$table->enum(
'type',
["doi", "handle", "isbn", "issn", "url", "urn"]
["DOI", "Handle", "ISBN", "ISSN", "URL", "URN"]
);
// ALTER TABLE gba.document_references
// DROP CONSTRAINT document_references_type_check
// , ADD CONSTRAINT document_references_type_check CHECK (type::text = ANY (ARRAY['DOI'::character varying, 'Handle'::character varying, 'ISBN'::character varying, 'ISSN'::character varying, 'URL'::character varying, 'URN'::character varying]::text[]));
$table->enum(
'relation',
["IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues",