diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php index 9fd0667d17..d02b8d2ca3 100644 --- a/app/config/collections/platform.php +++ b/app/config/collections/platform.php @@ -1840,9 +1840,9 @@ $platformCollections = [ ], [ '$id' => ID::custom('personalAccessToken'), - 'type' => Database::VAR_STRING, + 'type' => Database::VAR_TEXT, 'format' => '', - 'size' => 2048, + 'size' => 0, 'signed' => true, 'required' => false, 'default' => null, @@ -1862,9 +1862,9 @@ $platformCollections = [ ], [ '$id' => ID::custom('personalRefreshToken'), - 'type' => Database::VAR_STRING, + 'type' => Database::VAR_TEXT, 'format' => '', - 'size' => 2048, + 'size' => 0, 'signed' => true, 'required' => false, 'default' => null, diff --git a/src/Appwrite/Migration/Version/V25.php b/src/Appwrite/Migration/Version/V25.php index 0d42606a7f..17ed49b73d 100644 --- a/src/Appwrite/Migration/Version/V25.php +++ b/src/Appwrite/Migration/Version/V25.php @@ -74,9 +74,9 @@ class V25 extends Migration if ($collectionType === 'console') { foreach (['personalAccessToken', 'personalRefreshToken'] as $attribute) { try { - $this->dbForProject->updateAttribute($id, $attribute, size: 2048); + $this->dbForProject->updateAttribute($id, $attribute, type: Database::VAR_TEXT, size: 0); } catch (Throwable $th) { - Console::warning("Failed to resize attribute \"{$attribute}\" in collection {$id}: {$th->getMessage()}"); + Console::warning("Failed to convert attribute \"{$attribute}\" to text in collection {$id}: {$th->getMessage()}"); } } }