1
0
Fork 0
mirror of synced 2024-09-20 03:17:30 +12:00

Catch duplicate db on project create

This commit is contained in:
Jake Barnby 2024-08-13 21:49:14 +12:00
parent 340aa48d93
commit 73ca1efbeb
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -197,7 +197,11 @@ App::post('/v1/projects')
->setNamespace('_' . $project->getInternalId());
}
$dbForProject->create();
try {
$dbForProject->create();
} catch (Duplicate) {
// Database already exists
}
$audit = new Audit($dbForProject);
$audit->setup();