From 3bbe6d4da8d1d323657f7a6fc36186e6871d070a Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 31 Mar 2023 18:19:46 +1300 Subject: [PATCH] Disallow updating two-way --- app/controllers/api/databases.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 0ac022aee3..066c5bbf12 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -2137,7 +2137,6 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/:key/ ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') - ->param('twoWay', null, new Boolean(), 'Is Two Way?', true) ->param('onDelete', null, new WhiteList([Database::RELATION_MUTATE_CASCADE, Database::RELATION_MUTATE_RESTRICT, Database::RELATION_MUTATE_SET_NULL], true), 'Constraints option', true) ->inject('response') ->inject('dbForProject') @@ -2146,7 +2145,6 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/:key/ string $databaseId, string $collectionId, string $key, - ?bool $twoWay, ?string $onDelete, Response $response, Database $dbForProject, @@ -2161,7 +2159,6 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/:key/ type: Database::VAR_RELATIONSHIP, required: false, options : [ - 'twoWay' => $twoWay, 'onDelete' => $onDelete ] );