Deperecated old collection rules
This commit is contained in:
parent
67a669231e
commit
b7b0c8204a
2 changed files with 2 additions and 19 deletions
|
@ -700,15 +700,6 @@ return [
|
|||
'required' => true,
|
||||
'array' => false,
|
||||
],
|
||||
[
|
||||
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
||||
'label' => 'Clients',
|
||||
'key' => 'clients',
|
||||
'type' => 'url',
|
||||
'default' => '',
|
||||
'required' => false,
|
||||
'array' => true,
|
||||
],
|
||||
[
|
||||
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
||||
'label' => 'Legal Name',
|
||||
|
@ -757,15 +748,6 @@ return [
|
|||
'default' => '',
|
||||
'required' => false,
|
||||
],
|
||||
[
|
||||
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
||||
'label' => 'OAuth Callback',
|
||||
'key' => 'usersOauthCallback', // TODO Deprecate this
|
||||
'type' => 'url',
|
||||
'default' => '',
|
||||
'required' => false,
|
||||
'array' => false,
|
||||
],
|
||||
[
|
||||
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
||||
'label' => 'OAuth Bitbucket AppID',
|
||||
|
|
|
@ -9,7 +9,6 @@ use Utopia\Validator\Text;
|
|||
use Utopia\Validator\WhiteList;
|
||||
use Utopia\Validator\Range;
|
||||
use Utopia\Validator\URL;
|
||||
use Utopia\Validator\Domain;
|
||||
use Task\Validator\Cron;
|
||||
use Database\Database;
|
||||
use Database\Document;
|
||||
|
@ -387,6 +386,8 @@ $utopia->delete('/v1/projects/:projectId')
|
|||
throw new Exception('Project not found', 404);
|
||||
}
|
||||
|
||||
// Delete all children (keys, webhooks, tasks [stop tasks?], platforms)
|
||||
|
||||
if(!$consoleDB->deleteDocument($projectId)) {
|
||||
throw new Exception('Failed to remove project from DB', 500);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue