{"record":{"id":"a9bf70a74fde542c","repo":"coollabsio/coolify","slug":"unsupported-database-type-type","errorCode":null,"errorMessage":"Unsupported database type: {$type}","messagePattern":"Unsupported database type: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/ServerTransfer/ServerTransferImporter.php","lineNumber":833,"sourceCode":"     * @param  array<string, mixed>  $payload\n     * @param  array<string, StandaloneDocker|SwarmDocker>  $destinationMap\n     */\n    private function importDatabase(\n        array $payload,\n        Environment $environment,\n        array $destinationMap,\n        bool $preserveUuids,\n        bool $adoptMode,\n        int $teamId = 0,\n    ): ?Model {\n        $type = (string) data_get($payload, 'type', 'StandalonePostgresql');\n        $modelClass = self::DATABASE_MODELS[$type]\n            ?? (is_string(data_get($payload, 'model')) && class_exists((string) data_get($payload, 'model'))\n                ? (string) data_get($payload, 'model')\n                : null);\n\n        if (! $modelClass || ! class_exists($modelClass)) {\n            throw new RuntimeException(\"Unsupported database type: {$type}\");\n        }\n\n        $destination = $this->resolveDestination(data_get($payload, 'destination_uuid'), $destinationMap);\n        $uuid = $preserveUuids && filled(data_get($payload, 'uuid'))\n            ? (string) data_get($payload, 'uuid')\n            : new_public_id();\n\n        if ($modelClass::withTrashed()->where('uuid', $uuid)->exists()) {\n            $uuid = new_public_id();\n        }\n\n        $attributes = (array) data_get($payload, 'attributes', []);\n        unset($attributes['id'], $attributes['environment_id'], $attributes['destination_id'], $attributes['destination_type']);\n        $attributes = $this->onlyExistingColumns($modelClass, $attributes);\n        $attributes['uuid'] = $uuid;\n        $attributes['environment_id'] = $environment->id;\n        $attributes['destination_id'] = $destination->id;\n        $attributes['destination_type'] = $destination->getMorphClass();","sourceCodeStart":815,"sourceCodeEnd":851,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/ServerTransfer/ServerTransferImporter.php#L815-L851","documentation":"Error \"Unsupported database type: {$type}\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/ServerTransfer/ServerTransferImporter.php:833 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}