lint fix
This commit is contained in:
parent
aa6a1a2e31
commit
1720acb2b4
1 changed files with 5 additions and 3 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue