1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00
This commit is contained in:
prateek banga 2023-11-21 12:32:30 +05:30
parent aa6a1a2e31
commit 1720acb2b4

View file

@ -648,10 +648,12 @@ class V19 extends Migration
private function migrateEnumAttributeSize(): void
{
foreach ($this->documentsIterator('attributes', [
Query::equal('format', ['enum']),
foreach (
$this->documentsIterator('attributes', [
Query::equal('format', ['enum']),
Query::lessThan('size', Database::LENGTH_KEY)
]) as $attribute) {
]) as $attribute
) {
$attribute->setAttribute('size', Database::LENGTH_KEY);
$this->projectDB->updateDocument('attributes', $attribute->getId(), $attribute);
$databaseInternalId = $attribute->getAttribute('databaseInternalId');