From ad34cf3a624f2d8a7ef302aa6ae86c33028e222c Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 12 Jun 2025 16:17:27 +0530 Subject: [PATCH] add: lengths to column indexes. --- src/Appwrite/Utopia/Response/Model/ColumnIndex.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Appwrite/Utopia/Response/Model/ColumnIndex.php b/src/Appwrite/Utopia/Response/Model/ColumnIndex.php index 8c632266ef..bebc640fb2 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnIndex.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnIndex.php @@ -42,6 +42,13 @@ class ColumnIndex extends Model 'example' => [], 'array' => true, ]) + ->addRule('lengths', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Index columns length.', + 'default' => [], + 'example' => [], + 'array' => true, + ]) ->addRule('orders', [ 'type' => self::TYPE_STRING, 'description' => 'Index orders.',