{"record":{"id":"c85b1fb56f462bf8","repo":"Budibase/budibase","slug":"column-key-can-not-change-from-time-to-dateti","errorCode":null,"errorMessage":"Column \"${key}\" can not change from time to datetime or viceversa.","messagePattern":"Column \"(.+?)\" can not change from time to datetime or viceversa\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/server/src/sdk/workspace/tables/external/index.ts","lineNumber":86,"sourceCode":"      throw new Error(\n        `Column \"${key}\" has type \"${FieldType.AUTO}\" - this is not supported.`\n      )\n    }\n\n    if (\n      column.subtype &&\n      autoSubTypes.includes(column.subtype as AutoFieldSubType)\n    ) {\n      throw new Error(\n        `Column \"${key}\" has subtype \"${column.subtype}\" - this is not supported.`\n      )\n    }\n\n    if (column.type === FieldType.DATETIME) {\n      const oldColumn = oldTable?.schema[key] as typeof column\n\n      if (oldColumn && column.timeOnly !== oldColumn.timeOnly) {\n        throw new Error(\n          `Column \"${key}\" can not change from time to datetime or viceversa.`\n        )\n      }\n    }\n  }\n}\n\nfunction getDatasourceId(table: Table) {\n  if (!table) {\n    throw new Error(\"No table supplied\")\n  }\n  if (table.sourceId) {\n    return table.sourceId\n  }\n  if (!table._id) {\n    throw new Error(\"No table ID supplied\")\n  }\n  return breakExternalTableId(table._id).datasourceId","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/server/src/sdk/workspace/tables/external/index.ts#L68-L104","documentation":"Error \"Column \"${key}\" can not change from time to datetime or viceversa.\" thrown in Budibase/budibase.","triggerScenarios":"Thrown at packages/server/src/sdk/workspace/tables/external/index.ts:86 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":"a81a902e9a8fe55b467d106765f6638f12e35c49","analyzedAt":"2026-08-29T01:03:10.972Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}