From c8db0c6dcc68a7800f62dd6bddec8e08776b47c6 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 13 Feb 2026 14:34:02 +1300 Subject: [PATCH] Apply suggestions from code review --- app/config/variables.php | 6 +++--- .../Http/Databases/Collections/Attributes/Enum/Create.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/config/variables.php b/app/config/variables.php index 345e4d7176..926869a1e4 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -384,11 +384,11 @@ return [ 'variables' => [ [ 'name' => '_APP_DB_ADAPTER', - 'description' => 'To switch between mariadb and mongoDB', - 'introduction' => '1.8.0', + 'description' => 'Which database to use. Must be one of: MariaDB, MongoDB or PostgreSQL', + 'introduction' => '1.9.0', 'default' => 'mongodb', 'required' => true, - 'question' => 'Choose your database (mariadb|mongodb)', + 'question' => 'Choose your database (mariadb|mongodb|postgresql)', 'filter' => '' ], ], diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php index 460fbd371e..fbc2d08cd1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php @@ -63,9 +63,9 @@ class Create extends Action replaceWith: 'tablesDB.createEnumColumn', ), )) - ->param('databaseId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Database ID.', true, ['dbForProject']) - ->param('collectionId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Collection ID.', true, ['dbForProject']) - ->param('key', '', fn (Database $dbForProject) => new Key(false, $dbForProject->getAdapter()->getMaxUIDLength()), 'Attribute Key.', true, ['dbForProject']) + ->param('databaseId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Database ID.', false, ['dbForProject']) + ->param('collectionId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Collection ID.', false, ['dbForProject']) + ->param('key', '', fn (Database $dbForProject) => new Key(false, $dbForProject->getAdapter()->getMaxUIDLength()), 'Attribute Key.', false, ['dbForProject']) ->param('elements', [], new ArrayList(new Text(Database::LENGTH_KEY), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of enum values.') ->param('required', null, new Boolean(), 'Is attribute required?') ->param('default', null, new Nullable(new Text(0)), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true)