MCPcopy Create free account
hub / github.com/Rello/analytics / updateSchema

Method updateSchema

lib/Controller/DatasetController.php:138–145  ·  view source on GitHub ↗

@param list > $columns */

(int $datasetId, int $expectedSchemaVersion, array $columns, ?string $name = null)

Source from the content-addressed store, hash-verified

136
137 /** @param list<array<string,mixed>> $columns */
138 #[NoAdminRequired]
139 public function updateSchema(int $datasetId, int $expectedSchemaVersion, array $columns, ?string $name = null): DataResponse {
140 try {
141 return new DataResponse($this->DatasetService->updateFlexibleSchema($datasetId, $expectedSchemaVersion, $columns, $name));
142 } catch (FlexibleStorageException $e) {
143 return $this->flexibleError($e);
144 }
145 }
146
147 /** @param list<array<string,mixed>> $records */
148 #[NoAdminRequired]

Callers

nothing calls this directly

Calls 2

flexibleErrorMethod · 0.95
updateFlexibleSchemaMethod · 0.45

Tested by

no test coverage detected