mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
clickhouse: added specifcNotNull dialect option
This commit is contained in:
@@ -32,7 +32,9 @@
|
||||
<FormTextField name="columnName" label="Column name" focused disabled={isReadOnly} />
|
||||
<DataTypeEditor dialect={driver?.dialect} disabled={isReadOnly} />
|
||||
|
||||
<FormCheckboxField name="notNull" label="NOT NULL" disabled={isReadOnly} />
|
||||
{#if !driver?.dialect?.specificNotNull}
|
||||
<FormCheckboxField name="notNull" label="NOT NULL" disabled={isReadOnly} />
|
||||
{/if}
|
||||
<FormCheckboxField name="isPrimaryKey" label="Is Primary Key" disabled={isReadOnly} />
|
||||
<FormCheckboxField name="autoIncrement" label="Is Autoincrement" disabled={isReadOnly} />
|
||||
<FormTextField
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
on:clickrow={e => showModal(ColumnEditorModal, { columnInfo: e.detail, tableInfo, setTableInfo, driver })}
|
||||
onAddNew={isWritable ? addColumn : null}
|
||||
columns={[
|
||||
{
|
||||
!driver?.dialect?.specificNotNull && {
|
||||
fieldName: 'notNull',
|
||||
header: 'Nullability',
|
||||
sortable: true,
|
||||
|
||||
Reference in New Issue
Block a user