don't show primary key name when anonymousePrimaryKey=true

This commit is contained in:
Jan Prochazka
2024-09-12 09:04:52 +02:00
parent e54bd1da3f
commit 670cfb9dc0
4 changed files with 22 additions and 13 deletions

View File

@@ -118,6 +118,7 @@
showModal(PrimaryKeyEditorModal, {
setTableInfo,
tableInfo,
driver,
});
}
@@ -146,8 +147,6 @@
}
$: columns = tableInfo?.columns;
$: primaryKey = tableInfo?.primaryKey;
$: sortingKey = tableInfo?.sortingKey;
$: foreignKeys = tableInfo?.foreignKeys;
$: dependencies = tableInfo?.dependencies;
$: indexes = tableInfo?.indexes;
@@ -263,13 +262,14 @@
<svelte:fragment slot="name" let:row><ColumnLabel {...row} forceIcon /></svelte:fragment>
</ObjectListControl>
<PrimaryKeyLikeListControl {tableInfo} {setTableInfo} {isWritable} />
<PrimaryKeyLikeListControl {tableInfo} {setTableInfo} {isWritable} {driver} />
{#if driver?.dialect?.sortingKeys}
<PrimaryKeyLikeListControl
{tableInfo}
{setTableInfo}
{isWritable}
{driver}
constraintLabel="sorting key"
constraintType="sortingKey"
/>