pk editor

This commit is contained in:
Jan Prochazka
2021-06-17 13:58:21 +02:00
parent b8ccae570e
commit dea6700a25
6 changed files with 290 additions and 67 deletions

View File

@@ -30,6 +30,7 @@
import { useDbCore } from '../utility/metadataLoaders';
import ColumnEditorModal from './ColumnEditorModal.svelte';
import PrimaryKeyEditorModal from './PrimaryKeyEditorModal.svelte';
export const activator = createActivator('TableEditor', true);
@@ -111,6 +112,9 @@
<ObjectListControl
collection={_.compact([primaryKey])}
title="Primary key"
clickable={writable()}
on:clickrow={e => showModal(PrimaryKeyEditorModal, { constraintInfo: e.detail, tableInfo, setTableInfo })}
columns={[
{
fieldName: 'columns',