1
0
Fork 0
mirror of synced 2024-09-20 03:17:30 +12:00

Add variable runtimes sizes migrations

This commit is contained in:
Bradley Schofield 2024-07-22 19:40:05 +09:00
parent 3a6df3c973
commit 9e3c5b9368

View file

@ -87,6 +87,13 @@ class V21 extends Migration
Console::warning("'scopes' from {$id}: {$th->getMessage()}");
}
// Create size attribute
try {
$this->createAttributeFromCollection($this->projectDB, $id, 'size');
} catch (Throwable $th) {
Console::warning("'size' from {$id}: {$th->getMessage()}");
}
break;
case 'executions':
// Create requestMethod index
@ -133,7 +140,14 @@ class V21 extends Migration
// Add accessedAt attribute
$document->setAttribute('accessedAt', DateTime::now());
break;
case 'functions':
// Add scopes attribute
$document->setAttribute('scopes', []);
// Add size attribute
$document->setAttribute('size', 's-1vcpu-512m');
}
return $document;
}
}