diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte
index e88c28a9d9..26d0357b5f 100644
--- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte
+++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte
@@ -604,27 +604,29 @@
- {#if datasource?.source !== SourceName.ORACLE && datasource?.source !== SourceName.SQL_SERVER && !editableColumn.dateOnly}
-
-
-
-
-
-
+ {#if !editableColumn.timeOnly}
+ {#if datasource?.source !== SourceName.ORACLE && datasource?.source !== SourceName.SQL_SERVER && !editableColumn.dateOnly}
+
-
-
+ {/if}
+
{/if}
-
{:else if editableColumn.type === FieldType.NUMBER && !editableColumn.autocolumn}
diff --git a/packages/server/src/sdk/app/tables/external/index.ts b/packages/server/src/sdk/app/tables/external/index.ts
index 98e6e561c8..842b6b5648 100644
--- a/packages/server/src/sdk/app/tables/external/index.ts
+++ b/packages/server/src/sdk/app/tables/external/index.ts
@@ -73,6 +73,16 @@ function validate(table: Table, oldTable?: Table) {
`Column "${key}" has subtype "${column.subtype}" - this is not supported.`
)
}
+
+ if (column.type === FieldType.DATETIME) {
+ const oldColumn = oldTable?.schema[key] as typeof column
+
+ if (oldColumn && column.timeOnly !== oldColumn.timeOnly) {
+ throw new Error(
+ `Column "${key}" can not change from time to datetime or viceversa.`
+ )
+ }
+ }
}
}