Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: default sub partition type (#13639)

Liu Jie9a7b2c755c9
diff --git a/frontend/src/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.vue b/frontend/src/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.vue
index 21b1d11122..ce9ed99f0f 100644
--- a/frontend/src/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.vue
+++ b/frontend/src/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.vue
@@ -36,6 +36,7 @@ import { useI18n } from "vue-i18n";
import type { ComposedDatabase } from "@/types";
import {
TablePartitionMetadata,
+ TablePartitionMetadata_Type,
type DatabaseMetadata,
type SchemaMetadata,
type TableMetadata,
@@ -330,7 +331,9 @@ const columns = computed(() => {
}
}}
onAdd-sub={() => {
- const sub = TablePartitionMetadata.fromPartial({});
+ const sub = TablePartitionMetadata.fromPartial({
+ type: TablePartitionMetadata_Type.HASH,
+ });
markStatus(sub, "created");
if (item.partition.subpartitions) {
item.partition.subpartitions.push(sub);