diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 255227de34..46db5b5ce4 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -4961,7 +4961,7 @@ "weight": 329, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-collections.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-collections.md", "rate-limit": 0, @@ -4972,6 +4972,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listTables", "auth": { "Project": [] } @@ -5044,7 +5045,7 @@ "weight": 325, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-collection.md", "rate-limit": 0, @@ -5055,6 +5056,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createTable", "auth": { "Project": [] } @@ -5148,7 +5150,7 @@ "weight": 326, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection.md", "rate-limit": 0, @@ -5159,6 +5161,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getTable", "auth": { "Project": [] } @@ -5217,7 +5220,7 @@ "weight": 327, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-collection.md", "rate-limit": 0, @@ -5228,6 +5231,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.updateTable", "auth": { "Project": [] } @@ -5316,7 +5320,7 @@ "weight": 328, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-collection.md", "rate-limit": 0, @@ -5327,6 +5331,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteTable", "auth": { "Project": [] } @@ -9219,7 +9224,7 @@ "weight": 370, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, @@ -9230,6 +9235,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listColumnIndexes", "auth": { "Project": [] } @@ -9301,7 +9307,7 @@ "weight": 367, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, @@ -9312,6 +9318,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createColumnIndex", "auth": { "Project": [] } @@ -9429,7 +9436,7 @@ "weight": 368, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, @@ -9440,6 +9447,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getColumnIndex", "auth": { "Project": [] } @@ -9500,7 +9508,7 @@ "weight": 369, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, @@ -9511,6 +9519,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteColumnIndex", "auth": { "Project": [] } @@ -9580,7 +9589,7 @@ "weight": 330, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-collection-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-logs.md", "rate-limit": 0, @@ -9591,6 +9600,7 @@ "console" ], "packaging": false, + "replaceWith": "tables.listTableLogs", "auth": { "Project": [] } @@ -9663,7 +9673,7 @@ "weight": 331, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-collection-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-usage.md", "rate-limit": 0, @@ -9674,6 +9684,7 @@ "console" ], "packaging": false, + "replaceWith": "tables.getTableUsage", "auth": { "Project": [] } diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 8b04ac256e..3979ce1ce0 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -4416,7 +4416,7 @@ "weight": 329, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-collections.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-collections.md", "rate-limit": 0, @@ -4427,6 +4427,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listTables", "auth": { "Project": [], "Key": [] @@ -4500,7 +4501,7 @@ "weight": 325, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-collection.md", "rate-limit": 0, @@ -4511,6 +4512,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createTable", "auth": { "Project": [], "Key": [] @@ -4605,7 +4607,7 @@ "weight": 326, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection.md", "rate-limit": 0, @@ -4616,6 +4618,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getTable", "auth": { "Project": [], "Key": [] @@ -4675,7 +4678,7 @@ "weight": 327, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-collection.md", "rate-limit": 0, @@ -4686,6 +4689,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.updateTable", "auth": { "Project": [], "Key": [] @@ -4775,7 +4779,7 @@ "weight": 328, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-collection.md", "rate-limit": 0, @@ -4786,6 +4790,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteTable", "auth": { "Project": [], "Key": [] @@ -8626,7 +8631,7 @@ "weight": 370, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, @@ -8637,6 +8642,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listColumnIndexes", "auth": { "Project": [], "Key": [] @@ -8709,7 +8715,7 @@ "weight": 367, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, @@ -8720,6 +8726,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createColumnIndex", "auth": { "Project": [], "Key": [] @@ -8838,7 +8845,7 @@ "weight": 368, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, @@ -8849,6 +8856,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getColumnIndex", "auth": { "Project": [], "Key": [] @@ -8910,7 +8918,7 @@ "weight": 369, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, @@ -8921,6 +8929,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteColumnIndex", "auth": { "Project": [], "Key": [] diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 1aa8038421..2f28c224e6 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -5128,7 +5128,7 @@ "weight": 329, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-collections.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-collections.md", "rate-limit": 0, @@ -5139,6 +5139,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listTables", "auth": { "Project": [] } @@ -5208,7 +5209,7 @@ "weight": 325, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-collection.md", "rate-limit": 0, @@ -5219,6 +5220,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createTable", "auth": { "Project": [] } @@ -5313,7 +5315,7 @@ "weight": 326, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection.md", "rate-limit": 0, @@ -5324,6 +5326,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getTable", "auth": { "Project": [] } @@ -5380,7 +5383,7 @@ "weight": 327, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-collection.md", "rate-limit": 0, @@ -5391,6 +5394,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.updateTable", "auth": { "Project": [] } @@ -5481,7 +5485,7 @@ "weight": 328, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-collection.md", "rate-limit": 0, @@ -5492,6 +5496,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteTable", "auth": { "Project": [] } @@ -9302,7 +9307,7 @@ "weight": 370, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, @@ -9313,6 +9318,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listColumnIndexes", "auth": { "Project": [] } @@ -9381,7 +9387,7 @@ "weight": 367, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, @@ -9392,6 +9398,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createColumnIndex", "auth": { "Project": [] } @@ -9508,7 +9515,7 @@ "weight": 368, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, @@ -9519,6 +9526,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getColumnIndex", "auth": { "Project": [] } @@ -9577,7 +9585,7 @@ "weight": 369, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, @@ -9588,6 +9596,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteColumnIndex", "auth": { "Project": [] } @@ -9651,7 +9660,7 @@ "weight": 330, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-collection-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-logs.md", "rate-limit": 0, @@ -9662,6 +9671,7 @@ "console" ], "packaging": false, + "replaceWith": "tables.listTableLogs", "auth": { "Project": [] } @@ -9729,7 +9739,7 @@ "weight": 331, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-collection-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-usage.md", "rate-limit": 0, @@ -9740,6 +9750,7 @@ "console" ], "packaging": false, + "replaceWith": "tables.getTableUsage", "auth": { "Project": [] } diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 83aa8e3685..53f71bea44 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -4573,7 +4573,7 @@ "weight": 329, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-collections.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-collections.md", "rate-limit": 0, @@ -4584,6 +4584,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listTables", "auth": { "Project": [], "Key": [] @@ -4654,7 +4655,7 @@ "weight": 325, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-collection.md", "rate-limit": 0, @@ -4665,6 +4666,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createTable", "auth": { "Project": [], "Key": [] @@ -4760,7 +4762,7 @@ "weight": 326, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection.md", "rate-limit": 0, @@ -4771,6 +4773,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getTable", "auth": { "Project": [], "Key": [] @@ -4828,7 +4831,7 @@ "weight": 327, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-collection.md", "rate-limit": 0, @@ -4839,6 +4842,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.updateTable", "auth": { "Project": [], "Key": [] @@ -4930,7 +4934,7 @@ "weight": 328, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-collection.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-collection.md", "rate-limit": 0, @@ -4941,6 +4945,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteTable", "auth": { "Project": [], "Key": [] @@ -8706,7 +8711,7 @@ "weight": 370, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, @@ -8717,6 +8722,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.listColumnIndexes", "auth": { "Project": [], "Key": [] @@ -8786,7 +8792,7 @@ "weight": 367, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, @@ -8797,6 +8803,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.createColumnIndex", "auth": { "Project": [], "Key": [] @@ -8914,7 +8921,7 @@ "weight": 368, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, @@ -8925,6 +8932,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.getColumnIndex", "auth": { "Project": [], "Key": [] @@ -8984,7 +8992,7 @@ "weight": 369, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, @@ -8995,6 +9003,7 @@ "server" ], "packaging": false, + "replaceWith": "tables.deleteColumnIndex", "auth": { "Project": [], "Key": [] 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 176c3ca853..8550c198a9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php @@ -61,7 +61,10 @@ class Create extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.createTable', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.') 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 e4618a40b7..304aadc8d5 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php @@ -51,7 +51,10 @@ class Delete extends Action model: UtopiaResponse::MODEL_NONE, ) ], - contentType: ContentType::NONE + contentType: ContentType::NONE, + deprecated: [ + 'replaceWith' => 'tables.deleteTable', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection 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 e35a924657..e3a7fec891 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php @@ -46,7 +46,10 @@ class Get extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.getTable', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection 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 9003fbb4a9..8e8daed75f 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 @@ -61,7 +61,10 @@ class Create extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.createColumnIndex', + ], )) ->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).') 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 701ab103ad..8f5475f7a7 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 @@ -56,7 +56,10 @@ class Delete extends Action model: UtopiaResponse::MODEL_NONE, ) ], - contentType: ContentType::NONE + contentType: ContentType::NONE, + deprecated: [ + 'replaceWith' => 'tables.deleteColumnIndex', + ], )) ->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).') 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 c5b81fe231..82379265a5 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 @@ -47,7 +47,10 @@ class Get extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.getColumnIndex', + ], )) ->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).') 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 36c52f711e..791493ff0a 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 @@ -52,7 +52,10 @@ class XList extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.listColumnIndexes', + ], )) ->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).') 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 70bb14e9d8..2cabce49ae 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 @@ -58,7 +58,10 @@ class XList extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.listTableLogs', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection 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 fd3b1e8bda..e420f4de93 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php @@ -54,7 +54,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.updateTable', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection 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 e5335d6abf..4dadaad87c 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 @@ -52,6 +52,9 @@ class Get extends Action ) ], contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.getTableUsage', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true) 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 3a9868dec2..3c86afd9a6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php @@ -53,7 +53,10 @@ class XList extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'tables.listTables', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('queries', [], new Collections(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Collections::ALLOWED_ATTRIBUTES), true)