Merge branch 'add-project-variable-migration' into add-webhook-migration

This commit is contained in:
Prem Palanisamy committed 2026-06-03 09:47:14 +01:00
commit e4b6a4f685
1 file changed
+19
@@ -179,6 +179,19 @@ class Project extends Model
'example' => new \stdClass(),
'array' => true,
])
->addRule('blocks', [
'type' => self::TYPE_STRING,
'description' => 'Project blocks information.',
'default' => [],
'example' => [],
'array' => true,
])
->addRule('consoleAccessedAt', [
'type' => self::TYPE_DATETIME,
'description' => 'Last time the project was accessed via console.',
'default' => '',
'example' => self::TYPE_DATETIME_EXAMPLE,
])
;
}
@@ -213,10 +226,16 @@ class Project extends Model
$this->expandServices($document);
$this->expandProtocols($document);
$this->expandAuthMethods($document);
$this->expandConsoleAccessedAt($document);
return $document;
}
private function expandConsoleAccessedAt(Document $document): void
{
$document->setAttribute('consoleAccessedAt', $document->getAttribute('accessedAt', ''));
}
private function expandSmtpFields(Document $document): void
{
if (!$document->isSet('smtp')) {