Skip to content
Snippets Groups Projects
Verified Commit 6648141f authored by Martin Weise's avatar Martin Weise
Browse files

Updated the primary key composite

parent 80b2841c
Branches fix/composite-keys
No related tags found
No related merge requests found
No preview for this file type
......@@ -152,7 +152,6 @@
<v-checkbox
v-model="c.unique"
:disabled="disabled || c.type === 'serial'"
:hidden="c.primary_key"
:label="$t('pages.table.subpages.schema.unique.label')" />
</v-col>
<v-col
......@@ -250,6 +249,9 @@ export default {
return this.$vuetify.theme.global.name.toLowerCase().endsWith('contrast') ? runtimeConfig.public.variant.button.contrast : runtimeConfig.public.variant.button.normal
},
showPrimaryKeyWarning () {
if (this.disabled) {
return false
}
return this.columns.filter(c => c.primary_key).length === 0
}
},
......
......
......@@ -155,12 +155,11 @@
</v-stepper-header>
<v-stepper-window
direction="vertical">
<v-container
v-if="step >= 4">
<v-container>
<TableSchema
ref="schema"
:back="false"
:disabled="step > 4"
:disabled="step !== 4"
:loading="loading"
:submit-text="$t('navigation.continue')"
:columns="tableCreate.columns"
......
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment