Disallow updating two-way
This commit is contained in:
parent
cf122054aa
commit
3bbe6d4da8
1 changed files with 0 additions and 3 deletions
|
@ -2137,7 +2137,6 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/:key/
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->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('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('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)
|
->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('response')
|
||||||
->inject('dbForProject')
|
->inject('dbForProject')
|
||||||
|
@ -2146,7 +2145,6 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/:key/
|
||||||
string $databaseId,
|
string $databaseId,
|
||||||
string $collectionId,
|
string $collectionId,
|
||||||
string $key,
|
string $key,
|
||||||
?bool $twoWay,
|
|
||||||
?string $onDelete,
|
?string $onDelete,
|
||||||
Response $response,
|
Response $response,
|
||||||
Database $dbForProject,
|
Database $dbForProject,
|
||||||
|
@ -2161,7 +2159,6 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/:key/
|
||||||
type: Database::VAR_RELATIONSHIP,
|
type: Database::VAR_RELATIONSHIP,
|
||||||
required: false,
|
required: false,
|
||||||
options : [
|
options : [
|
||||||
'twoWay' => $twoWay,
|
|
||||||
'onDelete' => $onDelete
|
'onDelete' => $onDelete
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue