mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
update: deprecation methods.
This commit is contained in:
parent
e41ee30ed9
commit
d17e7e853b
46 changed files with 47 additions and 47 deletions
|
|
@ -55,7 +55,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createBooleanColumn',
|
||||
replaceWith: 'grids.createBooleanColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateBooleanColumn',
|
||||
replaceWith: 'grids.updateBooleanColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createDatetimeColumn',
|
||||
replaceWith: 'grids.createDatetimeColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateDatetimeColumn',
|
||||
replaceWith: 'grids.updateDatetimeColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Delete extends Action
|
|||
contentType: ContentType::NONE,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.deleteColumn',
|
||||
replaceWith: 'grids.deleteColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createEmailColumn',
|
||||
replaceWith: 'grids.createEmailColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateEmailColumn',
|
||||
replaceWith: 'grids.updateEmailColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createEnumColumn',
|
||||
replaceWith: 'grids.createEnumColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateEnumColumn',
|
||||
replaceWith: 'grids.updateEnumColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createFloatColumn',
|
||||
replaceWith: 'grids.createFloatColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateFloatColumn',
|
||||
replaceWith: 'grids.updateFloatColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class Get extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.getColumn',
|
||||
replaceWith: 'grids.getColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createIpColumn',
|
||||
replaceWith: 'grids.createIpColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateIpColumn',
|
||||
replaceWith: 'grids.updateIpColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createIntegerColumn',
|
||||
replaceWith: 'grids.createIntegerColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateIntegerColumn',
|
||||
replaceWith: 'grids.updateIntegerColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createRelationshipColumn',
|
||||
replaceWith: 'grids.createRelationshipColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateRelationshipColumn',
|
||||
replaceWith: 'grids.updateRelationshipColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createStringColumn',
|
||||
replaceWith: 'grids.createStringColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateStringColumn',
|
||||
replaceWith: 'grids.updateStringColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createUrlColumn',
|
||||
replaceWith: 'grids.createUrlColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateUrlColumn',
|
||||
replaceWith: 'grids.updateUrlColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class XList extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.listColumns',
|
||||
replaceWith: 'grids.listColumns',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class Create extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.create',
|
||||
replaceWith: 'grids.createTable',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class Delete extends Action
|
|||
contentType: ContentType::NONE,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.delete',
|
||||
replaceWith: 'grids.deleteTable',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class Decrement extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.decrementRowColumn',
|
||||
replaceWith: 'grids.decrementRowColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class Increment extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.incrementRowColumn',
|
||||
replaceWith: 'grids.incrementRowColumn',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class Delete extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.deleteRows',
|
||||
replaceWith: 'grids.deleteRows',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateRows',
|
||||
replaceWith: 'grids.updateRows',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class Upsert extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.upsertRows',
|
||||
replaceWith: 'grids.upsertRows',
|
||||
),
|
||||
)
|
||||
])
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createRow',
|
||||
replaceWith: 'grids.createRow',
|
||||
),
|
||||
),
|
||||
new Method(
|
||||
|
|
@ -107,7 +107,7 @@ class Create extends Action
|
|||
],
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createRows',
|
||||
replaceWith: 'grids.createRows',
|
||||
),
|
||||
)
|
||||
])
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class Delete extends Action
|
|||
contentType: ContentType::NONE,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.deleteRow',
|
||||
replaceWith: 'grids.deleteRow',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Get extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.getRow',
|
||||
replaceWith: 'grids.getRow',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class XList extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.listLogs',
|
||||
replaceWith: 'grids.listRowLogs',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.updateRow',
|
||||
replaceWith: 'grids.updateRow',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class Upsert extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.upsertRow',
|
||||
replaceWith: 'grids.upsertRow',
|
||||
),
|
||||
),
|
||||
])
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class XList extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.listRows',
|
||||
replaceWith: 'grids.listRows',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class Get extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.get',
|
||||
replaceWith: 'grids.getTable',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class Create extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.createIndex',
|
||||
replaceWith: 'grids.createIndex',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class Delete extends Action
|
|||
contentType: ContentType::NONE,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.deleteIndex',
|
||||
replaceWith: 'grids.deleteIndex',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class Get extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.getIndex',
|
||||
replaceWith: 'grids.getIndex',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class XList extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.listIndexes',
|
||||
replaceWith: 'grids.listIndexes',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class XList extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.listLogs',
|
||||
replaceWith: 'grids.listTableLogs',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Update extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.update',
|
||||
replaceWith: 'grids.updateTable',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class Get extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.getUsage',
|
||||
replaceWith: 'grids.getTableUsage',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class XList extends Action
|
|||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '1.8.0',
|
||||
replaceWith: 'tables.list',
|
||||
replaceWith: 'grids.listTables',
|
||||
),
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
|
|
|
|||
Loading…
Reference in a new issue