Skip to content

[Core] Projects class - Add not null and unique constraint to the name column of the Project table #6479

@laemtl

Description

@laemtl

master branch
/php/libraries/Project.class.inc:createNew()
Add the not null / unique constraints on the name column of the Project table and remove the below comments.

// TODO :: Add not null constraint to the name column of the Project table
if (empty($projectName)) {
   throw new \LorisException("ProjectName can't be null");
}

// TODO :: Add unique constraint to the name column of the Project table
$projectId = $factory->database()->pselectOne(...)

See #5687 for more details

Metadata

Metadata

Assignees

Labels

Category: CleanupPR or issue introducing/requiring at least one clean-up operationLanguage: SQLPR or issue that update SQL code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions