From 6d9b3aef0ebbe3024c0db1ec90ffd3e2ba48c71f Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 24 Jun 2025 17:32:23 +0530 Subject: [PATCH] chore: fix table replacewith methods --- .../Modules/Databases/Http/Databases/Collections/Create.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Delete.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Get.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Update.php | 2 +- .../Modules/Databases/Http/Databases/Collections/XList.php | 2 +- 5 files changed, 5 insertions(+), 5 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 8550c198a9..9d3b56f5f1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php @@ -63,7 +63,7 @@ class Create extends Action ], contentType: ContentType::JSON, deprecated: [ - '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 304aadc8d5..4cf7b3854c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php @@ -53,7 +53,7 @@ class Delete extends Action ], contentType: ContentType::NONE, deprecated: [ - 'replaceWith' => 'tables.deleteTable', + 'replaceWith' => 'tables.delete', ], )) ->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 e3a7fec891..ed54aa6bf9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php @@ -48,7 +48,7 @@ class Get extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.getTable', + 'replaceWith' => 'tables.get', ], )) ->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 e420f4de93..69e04574ad 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php @@ -56,7 +56,7 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateTable', + 'replaceWith' => 'tables.update', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php index 3c86afd9a6..b36572c5fc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php @@ -55,7 +55,7 @@ class XList extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.listTables', + 'replaceWith' => 'tables.list', ], )) ->param('databaseId', '', new UID(), 'Database ID.')