diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 6efb54d5e..593373bc8 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -1313,7 +1313,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/dateti ->inject('dbForProject') ->inject('database') ->inject('events') - ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?bool $default, bool $array, Response $response, Database $dbForProject, EventDatabase $database, Event $events) { + ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, bool $array, Response $response, Database $dbForProject, EventDatabase $database, Event $events) { $attribute = createAttribute($databaseId, $collectionId, new Document([ 'key' => $key, diff --git a/app/views/console/databases/collection.phtml b/app/views/console/databases/collection.phtml index 19454a88d..652439857 100644 --- a/app/views/console/databases/collection.phtml +++ b/app/views/console/databases/collection.phtml @@ -315,7 +315,7 @@ $permissions = $this->getParam('permissions', null);
  • - +
  • @@ -719,10 +719,10 @@ $permissions = $this->getParam('permissions', null);