mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Deperecated old collection rules
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user