1
0
Fork 0
mirror of synced 2024-07-05 06:31:08 +12:00

Disallow updating two-way

This commit is contained in:
Jake Barnby 2023-03-31 18:19:46 +13:00
parent cf122054aa
commit 3bbe6d4da8
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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
]
);