From 8cc254a56f2df2a36b85e0250cf2358a8a3dc681 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 3 Jul 2025 11:29:41 +0530 Subject: [PATCH] fix: replacewith methods --- .../Modules/Databases/Http/Databases/Collections/Create.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Delete.php | 2 +- .../Databases/Collections/Documents/Attribute/Decrement.php | 2 +- .../Databases/Collections/Documents/Attribute/Increment.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Get.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/Create.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/Delete.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/Get.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/XList.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Logs/XList.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Update.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Usage/Get.php | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php index ba76c35655..7d72425645 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php @@ -64,7 +64,7 @@ class Create extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.createTable', + 'replaceWith' => 'tables.create', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php index 8203780e11..e78d03e9c8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php @@ -54,7 +54,7 @@ class Delete extends Action contentType: ContentType::NONE, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.deleteTable', + 'replaceWith' => 'tables.delete', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php index 25c309492f..07a0342c80 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php @@ -64,7 +64,7 @@ class Decrement extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.decrementColumn', + 'replaceWith' => 'tables.decrementRowColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php index 785e319f3c..eed2399b53 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php @@ -64,7 +64,7 @@ class Increment extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.incrementColumn', + 'replaceWith' => 'tables.incrementRowColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php index 503762535e..9faeefa949 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php @@ -49,7 +49,7 @@ class Get extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.getTable', + 'replaceWith' => 'tables.get', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php index e67ff99806..c01f3aeb2d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php @@ -64,7 +64,7 @@ class Create extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.createColumnIndex', + 'replaceWith' => 'tables.createIndex', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php index 23095b6425..2ba8922c35 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php @@ -59,7 +59,7 @@ class Delete extends Action contentType: ContentType::NONE, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.deleteColumnIndex', + 'replaceWith' => 'tables.deleteIndex', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php index ad94cc760f..f7b163b47c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php @@ -50,7 +50,7 @@ class Get extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.getColumnIndex', + 'replaceWith' => 'tables.getIndex', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php index 5108bb1b3e..8b6e4ef8d0 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php @@ -55,7 +55,7 @@ class XList extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.listColumnIndexes', + 'replaceWith' => 'tables.listIndexes', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php index 03578f367a..12c1b19340 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php @@ -61,7 +61,7 @@ class XList extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.listTableLogs', + 'replaceWith' => 'tables.listLogs', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php index aa7214f5ad..e4c8b38c70 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php @@ -57,7 +57,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.updateTable', + 'replaceWith' => 'tables.update', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php index 3bcdcb976b..ec24f1bab4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php @@ -54,7 +54,7 @@ class Get extends Action contentType: ContentType::JSON, deprecated: [ 'since' => '1.8.0', - 'replaceWith' => 'tables.getTableUsage', + 'replaceWith' => 'tables.getUsage', ], )) ->param('databaseId', '', new UID(), 'Database ID.')