From be716807928a23f144162e65fea515570af91fa2 Mon Sep 17 00:00:00 2001 From: Ivan Vasilov Date: Tue, 1 Aug 2023 16:59:16 +0200 Subject: [PATCH] When creating a table, created_at should not be a nullable since it defaults to now() function. --- .../SidePanelEditor/TableEditor/TableEditor.constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts index d0dac2adb38..7b924cffdbe 100644 --- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts +++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts @@ -24,7 +24,7 @@ export const DEFAULT_COLUMNS: ColumnField[] = [ defaultValue: 'now()', check: null, foreignKey: undefined, - isNullable: true, + isNullable: false, isUnique: false, isArray: false, isPrimaryKey: false,