data type editor

This commit is contained in:
Jan Prochazka
2021-06-17 08:54:11 +02:00
parent 8874589ed0
commit 112f310d13
5 changed files with 78 additions and 3 deletions

View File

@@ -11,6 +11,8 @@
import ModalBase from '../modals/ModalBase.svelte';
import { closeCurrentModal } from '../modals/modalTools';
import ElectronFilesInput from '../impexp/ElectronFilesInput.svelte';
import DropDownButton from '../elements/DropDownButton.svelte';
import DataTypeEditor from './DataTypeEditor.svelte';
export let columnInfo;
export let setTableInfo;
@@ -26,8 +28,10 @@
>
<FormTextField name="columnName" label="Column name" focused />
<FormTextField name="dataType" label="Data type" />
<!-- <FormSelectField name="dataType" label="Data type" /> -->
<!-- <FormTextField name="dataType" label="Data type" /> -->
<DataTypeEditor />
<!-- <FormSelectField name="dataType" label="Data type" options={dataTypes} /> -->
<FormCheckboxField name="notNull" label="NOT NULL" />
<!-- <FormCheckboxField name="isPrimaryKey" label="Is Primary Key" /> -->
<FormCheckboxField name="autoIncrement" label="Is Autoincrement" />