mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Fallback index length 0
This commit is contained in:
parent
1ff1b55298
commit
b2cd1413ce
4 changed files with 23 additions and 12 deletions
|
|
@ -52,7 +52,7 @@
|
|||
"utopia-php/cache": "0.13.*",
|
||||
"utopia-php/cli": "0.15.*",
|
||||
"utopia-php/config": "0.2.*",
|
||||
"utopia-php/database": "0.72.*",
|
||||
"utopia-php/database": "dev-fix-index-length as 0.72.10",
|
||||
"utopia-php/detector": "0.1.*",
|
||||
"utopia-php/domains": "0.8.*",
|
||||
"utopia-php/dsn": "0.2.1",
|
||||
|
|
|
|||
27
composer.lock
generated
27
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "040a8234ecf1038a7e6dc16aa2dda084",
|
||||
"content-hash": "b855431b456629b5ecebe208bdd4b403",
|
||||
"packages": [
|
||||
{
|
||||
"name": "adhocore/jwt",
|
||||
|
|
@ -3493,16 +3493,16 @@
|
|||
},
|
||||
{
|
||||
"name": "utopia-php/database",
|
||||
"version": "0.72.0",
|
||||
"version": "dev-fix-index-length",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/database.git",
|
||||
"reference": "276fffbf889a455fefd5f3dcda89f249a92fd5e2"
|
||||
"reference": "b743f4a1408efdafe664b381c2b29763d4363fde"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/276fffbf889a455fefd5f3dcda89f249a92fd5e2",
|
||||
"reference": "276fffbf889a455fefd5f3dcda89f249a92fd5e2",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/b743f4a1408efdafe664b381c2b29763d4363fde",
|
||||
"reference": "b743f4a1408efdafe664b381c2b29763d4363fde",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -3543,9 +3543,9 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/utopia-php/database/issues",
|
||||
"source": "https://github.com/utopia-php/database/tree/0.72.0"
|
||||
"source": "https://github.com/utopia-php/database/tree/fix-index-length"
|
||||
},
|
||||
"time": "2025-07-21T03:45:49+00:00"
|
||||
"time": "2025-07-21T12:57:09+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/detector",
|
||||
|
|
@ -8237,9 +8237,18 @@
|
|||
"time": "2024-03-07T20:33:40+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
"aliases": [
|
||||
{
|
||||
"package": "utopia-php/database",
|
||||
"version": "dev-fix-index-length",
|
||||
"alias": "0.72.10",
|
||||
"alias_normalized": "0.72.10.0"
|
||||
}
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"stability-flags": {
|
||||
"utopia-php/database": 20
|
||||
},
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
|
|
|
|||
|
|
@ -161,7 +161,9 @@ class Create extends Action
|
|||
throw new Exception($this->getParentNotAvailableException(), "$contextType not available: " . $oldAttributes[$attributeIndex]['key']);
|
||||
}
|
||||
|
||||
$lengths[$i] ??= null;
|
||||
if (empty($lengths[$i])) {
|
||||
$lengths[$i] = null;
|
||||
}
|
||||
|
||||
if ($attributeArray === true) {
|
||||
$lengths[$i] = Database::ARRAY_INDEX_LENGTH;
|
||||
|
|
|
|||
|
|
@ -454,7 +454,7 @@ var_dump($attribute);
|
|||
|
||||
sleep(1);
|
||||
var_dump($index);
|
||||
$this->assertEquals('shmuel', 'dsdsd');
|
||||
//$this->assertEquals('shmuel', 'dsdsd');
|
||||
|
||||
/**
|
||||
* Update attribute size to exceed Index maximum length
|
||||
|
|
|
|||
Loading…
Reference in a new issue