Skip to content

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

chore: dummy version zero (#16154)

Danny Xub70dd462e13d
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
index cb0e86c703..65227cb154 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
@@ -52,7 +52,6 @@
<script setup lang="ts">
import { NTooltip, NButton } from "naive-ui";
-import { v4 as uuidv4 } from "uuid";
import { zindexable as vZindexable } from "vdirs";
import { computed, ref } from "vue";
import { useI18n } from "vue-i18n";
@@ -336,8 +335,8 @@ const runSQLCheckForIssue = async () => {
release: {
files: [
{
- // Use a random uuid to avoid duplication.
- version: uuidv4(),
+ // Use "0" for dummy version.
+ version: "0",
type: ReleaseFileType.VERSIONED,
statement: new TextEncoder().encode(statement),
changeType: getTaskChangeType(issue.value, flattenTasks[0]),
diff --git a/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckButton.vue b/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckButton.vue
index 952d73302b..211623e550 100644
--- a/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckButton.vue
+++ b/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckButton.vue
@@ -50,7 +50,6 @@
<script lang="ts" setup>
import { asyncComputed } from "@vueuse/core";
import { NButton, NPopover } from "naive-ui";
-import { v4 as uuidv4 } from "uuid";
import { computed, ref, watch } from "vue";
import { useI18n } from "vue-i18n";
import { BBSpin } from "@/bbkit";
@@ -123,8 +122,8 @@ const runCheckInternal = async (statement: string) => {
release: {
files: [
{
- // Use a random uuid to avoid duplication.
- version: uuidv4(),
+ // Use "0" for dummy version.
+ version: "0",
type: ReleaseFileType.VERSIONED,
statement: new TextEncoder().encode(statement),
changeType: changeType.value,
diff --git a/frontend/src/components/Plan/components/SQLCheckSectionV1/SQLCheckButton.vue b/frontend/src/components/Plan/components/SQLCheckSectionV1/SQLCheckButton.vue
index 83cb30ee49..3c40a53f9b 100644
--- a/frontend/src/components/Plan/components/SQLCheckSectionV1/SQLCheckButton.vue
+++ b/frontend/src/components/Plan/components/SQLCheckSectionV1/SQLCheckButton.vue
@@ -50,7 +50,6 @@
<script lang="ts" setup>
import { asyncComputed } from "@vueuse/core";
import { NButton, NPopover } from "naive-ui";
-import { v4 as uuidv4 } from "uuid";
import { computed, ref, watch } from "vue";
import { useI18n } from "vue-i18n";
import { BBSpin } from "@/bbkit";
@@ -120,8 +119,8 @@ const runCheckInternal = async (statement: string) => {
release: {
files: [
{
- // Use a random uuid to avoid duplication.
- version: uuidv4(),
+ // Use "0" for dummy version.
+ version: "0",
type: ReleaseFileType.VERSIONED,
statement: new TextEncoder().encode(statement),
changeType: changeType.value,
diff --git a/frontend/src/components/SQLCheck/SQLCheckButton.vue b/frontend/src/components/SQLCheck/SQLCheckButton.vue
index 8873835f22..a9efa6d1c0 100644
--- a/frontend/src/components/SQLCheck/SQLCheckButton.vue
+++ b/frontend/src/components/SQLCheck/SQLCheckButton.vue
@@ -69,7 +69,6 @@
import { asyncComputed } from "@vueuse/core";
import type { ButtonProps } from "naive-ui";
import { NButton, NPopover } from "naive-ui";
-import { v4 as uuidv4 } from "uuid";
import { computed, onUnmounted, ref, watch } from "vue";
import { onMounted } from "vue";
import { useI18n } from "vue-i18n";
@@ -162,8 +161,8 @@ const runCheckInternal = async (statement: string) => {
release: {
files: [
{
- // Use a random uuid to avoid duplication.
- version: uuidv4(),
+ // Use "0" for dummy version.
+ version: "0",
type: ReleaseFileType.VERSIONED,
statement: new TextEncoder().encode(statement),
// Default to DDL change type.