Skip to content

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

chore: update error code doc link (#944)

STEVEN1eb90ae2c0c1
diff --git a/frontend/src/components/Issue/TaskCheckRunPanel.vue b/frontend/src/components/Issue/TaskCheckRunPanel.vue
index a7f25d4d8a..9fac4e1e47 100644
--- a/frontend/src/components/Issue/TaskCheckRunPanel.vue
+++ b/frontend/src/components/Issue/TaskCheckRunPanel.vue
@@ -126,7 +126,7 @@ export default defineComponent({
const errorCodeLink = (code: ErrorCode): string => {
const error = ERROR_LIST.find((item) => item.code == code);
- return error ? `https://bytebase.com/doc/error#${error.hash}` : "";
+ return error ? `https://bytebase.com/docs/error-code#${error.hash}` : "";
};
return {
diff --git a/frontend/src/types/errorList.ts b/frontend/src/types/errorList.ts
index 4c17019cc0..b58cebe326 100644
--- a/frontend/src/types/errorList.ts
+++ b/frontend/src/types/errorList.ts
@@ -1,86 +1,86 @@
import { ErrorMeta } from ".";
-// List should be kept in sync with https://github.com/bytebase/bytebase.com/blob/main/pages/doc/errorList.ts
+// List should be kept in sync with https://github.com/bytebase/bytebase.com/blob/main/docs/error-code.md
// Bytebase uses this list to display link to the doc site.
export const ERROR_LIST: ErrorMeta[] = [
{
code: 0,
- hash: "0-ok",
+ hash: "0---ok",
},
{
code: 1,
- hash: "1-internal",
+ hash: "1---internal",
},
{
code: 101,
- hash: "101-db-connection",
+ hash: "101---db-connection",
},
{
code: 102,
- hash: "102-statement-syntax",
+ hash: "102---statement-syntax",
},
{
code: 103,
- hash: "103-statement-execution",
+ hash: "103---statement-execution",
},
{
code: 201,
- hash: "201-migration-schema-missing",
+ hash: "201---migration-schema-missing",
},
{
code: 202,
- hash: "202-migration-already-applied",
+ hash: "202---migration-already-applied",
},
{
code: 203,
- hash: "203-migration-out-of-order",
+ hash: "203---migration-out-of-order",
},
{
code: 204,
- hash: "204-migration-baseline-missing",
+ hash: "204---migration-baseline-missing",
},
{
code: 10001,
- hash: "10001-drop-database",
+ hash: "10001---drop-database",
},
{
code: 10002,
- hash: "10002-rename-table",
+ hash: "10002---rename-table",
},
{
code: 10003,
- hash: "10003-drop-table",
+ hash: "10003---drop-table",
},
{
code: 10004,
- hash: "10004-rename-column",
+ hash: "10004---rename-column",
},
{
code: 10005,
- hash: "10005-drop-column",
+ hash: "10005---drop-column",
},
{
code: 10006,
- hash: "10006-add-primary-key",
+ hash: "10006---add-primary-key",
},
{
code: 10007,
- hash: "10007-add-unique-key",
+ hash: "10007---add-unique-key",
},
{
code: 10008,
- hash: "10008-add-foreign-key",
+ hash: "10008---add-foreign-key",
},
{
code: 10009,
- hash: "10009-add-check",
+ hash: "10009---add-check",
},
{
code: 10010,
- hash: "10010-alter-check",
+ hash: "10010---alter-check",
},
{
code: 10011,
- hash: "10011-alter-column",
+ hash: "10011---alter-column",
},
];