diff --git a/app/config/collections/projects.php b/app/config/collections/projects.php index bae7dc20dd..0995b9e07a 100644 --- a/app/config/collections/projects.php +++ b/app/config/collections/projects.php @@ -1192,17 +1192,6 @@ return [ 'array' => false, 'filters' => [], ], - [ - '$id' => ID::custom('buildInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], [ 'array' => false, '$id' => ID::custom('entrypoint'), @@ -1583,17 +1572,6 @@ return [ 'array' => false, 'filters' => [], ], - [ - '$id' => ID::custom('runtime'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => '', - 'array' => false, - 'filters' => [], - ], [ '$id' => ID::custom('status'), 'type' => Database::VAR_STRING, diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php index 6885ecde6c..940bdc295f 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php @@ -217,7 +217,6 @@ class Create extends Action 'resourceInternalId' => $function->getInternalId(), 'resourceId' => $function->getId(), 'resourceType' => 'functions', - 'buildInternalId' => '', 'entrypoint' => $entrypoint, 'commands' => $commands, 'path' => $path, @@ -248,7 +247,6 @@ class Create extends Action 'resourceInternalId' => $function->getInternalId(), 'resourceId' => $function->getId(), 'resourceType' => 'functions', - 'buildInternalId' => '', 'entrypoint' => $entrypoint, 'commands' => $commands, 'path' => $path, diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Duplicate/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Duplicate/Create.php index 624a410dcd..b8e5962b5f 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Duplicate/Create.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Duplicate/Create.php @@ -91,12 +91,17 @@ class Create extends Action $deployment = $dbForProject->createDocument('deployments', $deployment->setAttributes([ '$internalId' => '', '$id' => $deploymentId, - 'buildId' => '', - 'buildInternalId' => '', 'path' => $destination, 'entrypoint' => $function->getAttribute('entrypoint'), 'commands' => $function->getAttribute('commands', ''), 'search' => implode(' ', [$deploymentId, $function->getAttribute('entrypoint')]), + 'startTime' => null, + 'endTime' => null, + 'buildTime' => null, + 'buildSize' => null, + 'status' => 'processing', + 'buildPath' => '', + 'buildLogs' => '', ])); $queueForBuilds diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php index 3c7c0df633..8a39baa87b 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -196,7 +196,6 @@ class Builds extends Action $deployment->setAttribute('startTime', $startTime); $deployment->setAttribute('status', 'processing'); - $deployment->setAttribute('runtime', $resource->getAttribute('runtime')); $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); $source = $deployment->getAttribute('path', ''); diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php index fc70f2fe25..baa5158b2b 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php @@ -216,7 +216,6 @@ class Create extends Action 'resourceInternalId' => $site->getInternalId(), 'resourceId' => $site->getId(), 'resourceType' => 'sites', - 'buildInternalId' => '', 'installCommand' => $installCommand, 'buildCommand' => $buildCommand, 'outputDirectory' => $outputDirectory, @@ -265,7 +264,6 @@ class Create extends Action 'resourceInternalId' => $site->getInternalId(), 'resourceId' => $site->getId(), 'resourceType' => 'sites', - 'buildInternalId' => '', 'installCommand' => $installCommand, 'buildCommand' => $buildCommand, 'outputDirectory' => $outputDirectory, diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php index b30c07838f..9ed92e38df 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php @@ -93,14 +93,20 @@ class Create extends Action '$internalId' => '', '$id' => $deploymentId, 'buildId' => '', - 'buildInternalId' => '', 'path' => $destination, 'buildCommand' => $site->getAttribute('buildCommand', ''), 'installCommand' => $site->getAttribute('installCommand', ''), 'outputDirectory' => $site->getAttribute('outputDirectory', ''), 'search' => implode(' ', [$deploymentId]), 'screenshotLight' => '', - 'screenshotDark' => '' + 'screenshotDark' => '', + 'startTime' => null, + 'endTime' => null, + 'buildTime' => null, + 'buildSize' => null, + 'status' => 'processing', + 'buildPath' => '', + 'buildLogs' => '', ])); // Preview deployments for sites