Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: remove multitenancy (#15581)
Danny Xuc6b2db742a5b
diff --git a/backend/api/v1/database_group_service.go b/backend/api/v1/database_group_service.goindex 691fa08102..bab90fc982 100644--- a/backend/api/v1/database_group_service.go+++ b/backend/api/v1/database_group_service.go@@ -15,7 +15,6 @@ import (api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/store""github.com/bytebase/bytebase/backend/utils"- storepb "github.com/bytebase/bytebase/proto/generated-go/store"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")@@ -79,11 +78,6 @@ func (s *DatabaseGroupService) CreateDatabaseGroup(ctx context.Context, requestPlaceholder: request.DatabaseGroup.DatabasePlaceholder,Expression: request.DatabaseGroup.DatabaseExpr,}- if request.DatabaseGroup.Multitenancy {- storeDatabaseGroup.Payload = &storepb.DatabaseGroupPayload{- Multitenancy: true,- }- }if request.ValidateOnly {return s.convertStoreToAPIDatabaseGroupFull(ctx, storeDatabaseGroup, projectResourceID)}@@ -143,10 +137,6 @@ func (s *DatabaseGroupService) UpdateDatabaseGroup(ctx context.Context, requestreturn nil, status.Errorf(codes.InvalidArgument, "invalid database group expression: %v", err)}updateDatabaseGroup.Expression = request.DatabaseGroup.DatabaseExpr- case "multitenancy":- updateDatabaseGroup.Payload = &storepb.DatabaseGroupPayload{- Multitenancy: request.DatabaseGroup.Multitenancy,- }default:return nil, status.Errorf(codes.InvalidArgument, "unsupported path: %q", path)}@@ -290,8 +280,5 @@ func convertStoreToAPIDatabaseGroupBasic(databaseGroup *store.DatabaseGroupMessaDatabasePlaceholder: databaseGroup.Placeholder,DatabaseExpr: databaseGroup.Expression,}- if databaseGroup.Payload != nil {- databaseGroupV1.Multitenancy = databaseGroup.Payload.Multitenancy- }return databaseGroupV1}diff --git a/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vue b/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vueindex 4229438c3f..4ba82d1d59 100644--- a/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vue+++ b/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vue@@ -18,19 +18,18 @@</template><script lang="tsx" setup>+import type { ComposedDatabaseGroup } from "@/types";+import { hasPermissionToCreateChangeDatabaseIssueInProject } from "@/utils";+import { generateDatabaseGroupIssueRoute } from "@/utils/databaseGroup/issue";import {NButton,NDataTable,- NTag,NDropdown,- type DataTableColumn,+ type DataTableColumn} from "naive-ui";import { computed, reactive, watch } from "vue";import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";-import type { ComposedDatabaseGroup } from "@/types";-import { hasPermissionToCreateChangeDatabaseIssueInProject } from "@/utils";-import { generateDatabaseGroupIssueRoute } from "@/utils/databaseGroup/issue";interface LocalState {selectedDatabaseGroupNameList: Set<string>;@@ -93,11 +92,6 @@ const columnList = computed((): DatabaseGroupDataTableColumn[] => {return (<div class="space-x-2"><span>{data.databasePlaceholder}</span>- {data.multitenancy && (- <NTag round type="info" size="small">- {t("database-group.multitenancy.self")}- </NTag>- )}</div>);},diff --git a/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vue b/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vueindex e9b073330e..2ba82ab997 100644--- a/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vue+++ b/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vue@@ -54,26 +54,6 @@/></div></div>- <NDivider />- <div class="w-full pl-1">- <p class="font-medium text-main mb-2">- {{ $t("common.options") }}- </p>- <div>- <NCheckbox- v-model:checked="state.multitenancy"- size="medium"- :label="$t('database-group.multitenancy.self')"- />- <p class="text-sm text-gray-400 pl-6 ml-0.5">- {{ $t("database-group.multitenancy.description") }}- <LearnMoreLink- url="https://www.bytebase.com/docs/change-database/batch-change/?source=console#multitenancy"- class="text-sm"- />- </p>- </div>- </div></div></template><template #footer>@@ -98,22 +78,13 @@</template><script lang="ts" setup>-import { useDebounceFn } from "@vueuse/core";-import { cloneDeep, head, isEqual } from "lodash-es";-import { Trash2Icon } from "lucide-vue-next";-import { NCheckbox, NButton, NInput, NDivider, useDialog } from "naive-ui";-import { ClientError, Status } from "nice-grpc-web";-import { computed, onMounted, reactive, ref, watch } from "vue";-import { useI18n } from "vue-i18n";-import { useRouter } from "vue-router";import ExprEditor from "@/components/ExprEditor";-import LearnMoreLink from "@/components/LearnMoreLink.vue";import FormLayout from "@/components/v2/Form/FormLayout.vue";import type { ConditionGroupExpr } from "@/plugins/cel";import {+ buildCELExpr,emptySimpleExpr,validateSimpleExpr,- buildCELExpr,wrapAsGroup,} from "@/plugins/cel";import {@@ -121,9 +92,9 @@ import {PROJECT_V1_ROUTE_DATABASE_GROUP_DETAIL,} from "@/router/dashboard/projectV1";import {+ pushNotification,useDBGroupStore,useSubscriptionV1Store,- pushNotification,} from "@/store";import {databaseGroupNamePrefix,@@ -140,14 +111,22 @@ import { Expr } from "@/types/proto/google/type/expr";import type { DatabaseGroup } from "@/types/proto/v1/database_group_service";import { batchConvertParsedExprToCELString } from "@/utils";import { getErrorCode } from "@/utils/grpcweb";+import { useDebounceFn } from "@vueuse/core";+import { cloneDeep, head, isEqual } from "lodash-es";+import { Trash2Icon } from "lucide-vue-next";+import { NButton, NDivider, NInput, useDialog } from "naive-ui";+import { ClientError, Status } from "nice-grpc-web";+import { computed, onMounted, reactive, ref, watch } from "vue";+import { useI18n } from "vue-i18n";+import { useRouter } from "vue-router";import { FeatureAttentionForInstanceLicense } from "../FeatureGuard";import { ResourceIdField } from "../v2";import MatchedDatabaseView from "./MatchedDatabaseView.vue";import {+ FactorList,factorSupportDropdown,getDatabaseGroupOptionConfigMap,} from "./utils";-import { FactorList } from "./utils";const props = defineProps<{project: ComposedProject;@@ -166,7 +145,6 @@ type LocalState = {placeholder: string;selectedDatabaseGroupId?: string;expr: ConditionGroupExpr;- multitenancy: boolean;};const { t } = useI18n();@@ -177,7 +155,6 @@ const state = reactive<LocalState>({resourceId: "",placeholder: "",expr: wrapAsGroup(emptySimpleExpr()),- multitenancy: false,});const resourceIdField = ref<InstanceType<typeof ResourceIdField>>();const router = useRouter();@@ -204,7 +181,6 @@ onMounted(async () => {if (composedDatabaseGroup.simpleExpr) {state.expr = cloneDeep(composedDatabaseGroup.simpleExpr);}- state.multitenancy = composedDatabaseGroup.multitenancy;});const validateResourceId = async (@@ -369,7 +345,6 @@ const doConfirm = async () => {databaseExpr: Expr.fromPartial({expression: celString,}),- multitenancy: formState.multitenancy,},databaseGroupId: resourceId,});@@ -395,9 +370,6 @@ const doConfirm = async () => {) {updateMask.push("database_expr");}- if (!isEqual(props.databaseGroup.multitenancy, formState.multitenancy)) {- updateMask.push("multitenancy");- }await dbGroupStore.updateDatabaseGroup({...props.databaseGroup!,@@ -405,7 +377,6 @@ const doConfirm = async () => {databaseExpr: Expr.fromPartial({expression: celString,}),- multitenancy: formState.multitenancy,},updateMask);diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vueindex 494da43f5a..0a93ad790c 100644--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue@@ -65,10 +65,6 @@</template><script setup lang="ts">-import { cloneDeep, isEqual, uniqBy } from "lodash-es";-import { NButton, NTooltip } from "naive-ui";-import { computed, ref, watch } from "vue";-import { useI18n } from "vue-i18n";import {chooseUpdateTarget,databaseForTask,@@ -85,6 +81,10 @@ import { pushNotification, useDBGroupStore } from "@/store";import type { Plan_Spec } from "@/types/proto/v1/plan_service";import { Task_Type } from "@/types/proto/v1/rollout_service";import { extractDatabaseGroupName, extractEnvironmentResourceName } from "@/utils";+import { cloneDeep, isEqual, uniqBy } from "lodash-es";+import { NButton, NTooltip } from "naive-ui";+import { computed, ref, watch } from "vue";+import { useI18n } from "vue-i18n";import FlagsForm from "./FlagsForm";import { allowChangeTaskGhostFlags, useIssueGhostContext } from "./common";@@ -141,7 +141,7 @@ const chooseUpdateSpecs = async () => {const target = spec.value?.changeDatabaseConfig?.target;if (target && extractDatabaseGroupName(target)) {const dbGroup = dbGroupStore.getDBGroupByName(target);- if (dbGroup?.multitenancy) {+ if (dbGroup) {isBatchMode = true;}}diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex a4f76d109c..ae3499ba91 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -210,7 +210,6 @@"resource": "Resource","resources": "Resources","closed": "Closed",- "options": "Options","refresh": "Refresh","rollback": "Rollback","rows": {@@ -2450,10 +2449,6 @@"edit": "Edit database group","matched-database": "Matched database","unmatched-database": "Unmatched database",- "multitenancy": {- "self": "Multitenancy",- "description": "Enables managing multiple homogeneous databases in one workflow across different tenants."- },"condition": {"self": "Condition"},diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 069c338daa..5c92768d24 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -210,7 +210,6 @@"resource": "Recurso","resources": "Recursos","closed": "Cerrado",- "options": "Opciones","refresh": "Actualizar","rollback": "Retroceder","rows": {@@ -2450,10 +2449,6 @@"edit": "Editar grupo de bases de datos","matched-database": "Base de datos coincidente","unmatched-database": "Base de datos no coincidente",- "multitenancy": {- "self": "Multi Alquiler",- "description": "Permite gestionar múltiples bases de datos homogéneas en un flujo de trabajo entre diferentes inquilinos."- },"condition": {"self": "Condición"},diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex d3faf48bf0..0dfbf155aa 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -210,7 +210,6 @@"resource": "リソース","resources": "リソース","closed": "閉まっている",- "options": "オプション","refresh": "リフレッシュ","rollback": "ロールバック","rows": {@@ -2450,10 +2449,6 @@"edit": "データベースグループの編集","matched-database": "マッチングデータベース","unmatched-database": "データベースが一致しません",- "multitenancy": {- "self": "マルチテナント",- "description": "異なるテナント間で複数の同種データベースを 1 つのワークフローで管理できます。"- },"condition": {"self": "状態"},diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex de88e632d3..9bc15dc08a 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -210,7 +210,6 @@"resource": "Tài nguyên","resources": "Tài nguyên","closed": "Đã đóng",- "options": "Tùy chọn","refresh": "Làm mới","rollback": "Hoàn tác","rows": {@@ -2450,10 +2449,6 @@"edit": "Chỉnh sửa nhóm cơ sở dữ liệu","matched-database": "Cơ sở dữ liệu phù hợp","unmatched-database": "Cơ sở dữ liệu không phù hợp",- "multitenancy": {- "self": "Đa đối tượng thuê",- "description": "Cho phép quản lý nhiều cơ sở dữ liệu đồng nhất trong một quy trình công việc trên các đối tượng thuê khác nhau."- },"condition": {"self": "Điều kiện"},diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 63e5b6617f..2522bb0197 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -210,7 +210,6 @@"resource": "资源","resources": "资源","closed": "已关闭",- "options": "配置项","refresh": "刷新","rollback": "回滚","rows": {@@ -2450,10 +2449,6 @@"edit": "编辑数据库分组","matched-database": "相匹配的数据库","unmatched-database": "不匹配的数据库",- "multitenancy": {- "self": "多租户",- "description": "支持管理跨不同租户的多个同构数据库。"- },"condition": {"self": "条件"},diff --git a/frontend/src/store/modules/dbGroup.ts b/frontend/src/store/modules/dbGroup.tsindex d6e6ba9d3b..034fbb1558 100644--- a/frontend/src/store/modules/dbGroup.ts+++ b/frontend/src/store/modules/dbGroup.ts@@ -1,8 +1,3 @@-import { computedAsync } from "@vueuse/core";-import { head } from "lodash-es";-import { defineStore } from "pinia";-import type { MaybeRef } from "vue";-import { computed, ref, unref, watchEffect } from "vue";import { databaseGroupServiceClient } from "@/grpcweb";import type { ConditionGroupExpr } from "@/plugins/cel";import {@@ -12,23 +7,27 @@ import {wrapAsGroup,} from "@/plugins/cel";import type {- ComposedDatabaseGroup,ComposedDatabase,+ ComposedDatabaseGroup,ComposedProject,} from "@/types";import { Expr } from "@/types/proto/google/type/expr";-import { DatabaseGroup } from "@/types/proto/v1/database_group_service";-import { DatabaseGroupView } from "@/types/proto/v1/database_group_service";+import { DatabaseGroup, DatabaseGroupView } from "@/types/proto/v1/database_group_service";import {- batchConvertParsedExprToCELString,batchConvertCELStringToParsedExpr,+ batchConvertParsedExprToCELString,} from "@/utils";+import { computedAsync } from "@vueuse/core";+import { head } from "lodash-es";+import { defineStore } from "pinia";+import type { MaybeRef } from "vue";+import { computed, ref, unref, watchEffect } from "vue";import { useCache } from "../cache";import {- useProjectV1Store,- useDatabaseV1Store,batchGetOrFetchDatabases,batchGetOrFetchProjects,+ useDatabaseV1Store,+ useProjectV1Store,} from "./v1";import {databaseGroupNamePrefix,@@ -196,7 +195,7 @@ export const useDBGroupStore = defineStore("db-group", () => {projectName: string;databaseGroup: Pick<DatabaseGroup,- "name" | "databasePlaceholder" | "databaseExpr" | "multitenancy"+ "name" | "databasePlaceholder" | "databaseExpr">;databaseGroupId: string;validateOnly?: boolean;diff --git a/frontend/src/types/proto/store/db_group.ts b/frontend/src/types/proto/store/db_group.tsindex 107497cb5c..8aa6daa05d 100644--- a/frontend/src/types/proto/store/db_group.ts+++ b/frontend/src/types/proto/store/db_group.ts@@ -11,18 +11,14 @@ import Long from "long";export const protobufPackage = "bytebase.store";export interface DatabaseGroupPayload {- multitenancy: boolean;}function createBaseDatabaseGroupPayload(): DatabaseGroupPayload {- return { multitenancy: false };+ return {};}export const DatabaseGroupPayload: MessageFns<DatabaseGroupPayload> = {- encode(message: DatabaseGroupPayload, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.multitenancy !== false) {- writer.uint32(8).bool(message.multitenancy);- }+ encode(_: DatabaseGroupPayload, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {return writer;},@@ -33,14 +29,6 @@ export const DatabaseGroupPayload: MessageFns<DatabaseGroupPayload> = {while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 1: {- if (tag !== 8) {- break;- }-- message.multitenancy = reader.bool();- continue;- }}if ((tag & 7) === 4 || tag === 0) {break;@@ -50,24 +38,20 @@ export const DatabaseGroupPayload: MessageFns<DatabaseGroupPayload> = {return message;},- fromJSON(object: any): DatabaseGroupPayload {- return { multitenancy: isSet(object.multitenancy) ? globalThis.Boolean(object.multitenancy) : false };+ fromJSON(_: any): DatabaseGroupPayload {+ return {};},- toJSON(message: DatabaseGroupPayload): unknown {+ toJSON(_: DatabaseGroupPayload): unknown {const obj: any = {};- if (message.multitenancy !== false) {- obj.multitenancy = message.multitenancy;- }return obj;},create(base?: DeepPartial<DatabaseGroupPayload>): DatabaseGroupPayload {return DatabaseGroupPayload.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<DatabaseGroupPayload>): DatabaseGroupPayload {+ fromPartial(_: DeepPartial<DatabaseGroupPayload>): DatabaseGroupPayload {const message = createBaseDatabaseGroupPayload();- message.multitenancy = object.multitenancy ?? false;return message;},};@@ -80,10 +64,6 @@ export type DeepPartial<T> = T extends Builtin ? T: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }: Partial<T>;-function isSet(value: any): boolean {- return value !== null && value !== undefined;-}-export interface MessageFns<T> {encode(message: T, writer?: BinaryWriter): BinaryWriter;decode(input: BinaryReader | Uint8Array, length?: number): T;diff --git a/frontend/src/types/proto/v1/database_group_service.ts b/frontend/src/types/proto/v1/database_group_service.tsindex 648ec7d4c6..e35df7aa70 100644--- a/frontend/src/types/proto/v1/database_group_service.ts+++ b/frontend/src/types/proto/v1/database_group_service.ts@@ -180,7 +180,6 @@ export interface DatabaseGroup {matchedDatabases: DatabaseGroup_Database[];/** The list of databases that match the database group condition. */unmatchedDatabases: DatabaseGroup_Database[];- multitenancy: boolean;}export interface DatabaseGroup_Database {@@ -686,14 +685,7 @@ export const DeleteDatabaseGroupRequest: MessageFns<DeleteDatabaseGroupRequest>};function createBaseDatabaseGroup(): DatabaseGroup {- return {- name: "",- databasePlaceholder: "",- databaseExpr: undefined,- matchedDatabases: [],- unmatchedDatabases: [],- multitenancy: false,- };+ return { name: "", databasePlaceholder: "", databaseExpr: undefined, matchedDatabases: [], unmatchedDatabases: [] };}export const DatabaseGroup: MessageFns<DatabaseGroup> = {@@ -713,9 +705,6 @@ export const DatabaseGroup: MessageFns<DatabaseGroup> = {for (const v of message.unmatchedDatabases) {DatabaseGroup_Database.encode(v!, writer.uint32(42).fork()).join();}- if (message.multitenancy !== false) {- writer.uint32(48).bool(message.multitenancy);- }return writer;},@@ -766,14 +755,6 @@ export const DatabaseGroup: MessageFns<DatabaseGroup> = {message.unmatchedDatabases.push(DatabaseGroup_Database.decode(reader, reader.uint32()));continue;}- case 6: {- if (tag !== 48) {- break;- }-- message.multitenancy = reader.bool();- continue;- }}if ((tag & 7) === 4 || tag === 0) {break;@@ -794,7 +775,6 @@ export const DatabaseGroup: MessageFns<DatabaseGroup> = {unmatchedDatabases: globalThis.Array.isArray(object?.unmatchedDatabases)? object.unmatchedDatabases.map((e: any) => DatabaseGroup_Database.fromJSON(e)): [],- multitenancy: isSet(object.multitenancy) ? globalThis.Boolean(object.multitenancy) : false,};},@@ -815,9 +795,6 @@ export const DatabaseGroup: MessageFns<DatabaseGroup> = {if (message.unmatchedDatabases?.length) {obj.unmatchedDatabases = message.unmatchedDatabases.map((e) => DatabaseGroup_Database.toJSON(e));}- if (message.multitenancy !== false) {- obj.multitenancy = message.multitenancy;- }return obj;},@@ -833,7 +810,6 @@ export const DatabaseGroup: MessageFns<DatabaseGroup> = {: undefined;message.matchedDatabases = object.matchedDatabases?.map((e) => DatabaseGroup_Database.fromPartial(e)) || [];message.unmatchedDatabases = object.unmatchedDatabases?.map((e) => DatabaseGroup_Database.fromPartial(e)) || [];- message.multitenancy = object.multitenancy ?? false;return message;},};diff --git a/frontend/src/views/project/ProjectDatabaseGroupDetail.vue b/frontend/src/views/project/ProjectDatabaseGroupDetail.vueindex 44b4e98a8b..785df7c6be 100644--- a/frontend/src/views/project/ProjectDatabaseGroupDetail.vue+++ b/frontend/src/views/project/ProjectDatabaseGroupDetail.vue@@ -19,12 +19,6 @@>{{ databaseGroup.databasePlaceholder }}</h1>- <NTag v-if="databaseGroup.multitenancy" round type="info">- <template #icon>- <TenantIcon />- </template>- {{ $t("database-group.multitenancy.self") }}- </NTag></div></div></div>@@ -95,30 +89,27 @@</template><script lang="ts" setup>-import { NButton, NDivider, NTag } from "naive-ui";-import { reactive, computed, watchEffect } from "vue";-import { useRouter } from "vue-router";import DatabaseGroupPanel from "@/components/DatabaseGroup/DatabaseGroupPanel.vue";import MatchedDatabaseView from "@/components/DatabaseGroup/MatchedDatabaseView.vue";-import { FactorList } from "@/components/DatabaseGroup/utils";import {- factorSupportDropdown,- getDatabaseGroupOptionConfigMap,+ FactorList, factorSupportDropdown,+ getDatabaseGroupOptionConfigMap} from "@/components/DatabaseGroup/utils";import ExprEditor from "@/components/ExprEditor";import { FeatureAttentionForInstanceLicense } from "@/components/FeatureGuard";-import TenantIcon from "@/components/TenantIcon.vue";import {useDBGroupStore,useDatabaseV1Store,useProjectByName,useSubscriptionV1Store,} from "@/store";-import { databaseGroupNamePrefix } from "@/store/modules/v1/common";-import { projectNamePrefix } from "@/store/modules/v1/common";+import { databaseGroupNamePrefix, projectNamePrefix } from "@/store/modules/v1/common";import { DatabaseGroupView } from "@/types/proto/v1/database_group_service";import { hasPermissionToCreateChangeDatabaseIssueInProject } from "@/utils";import { generateDatabaseGroupIssueRoute } from "@/utils/databaseGroup/issue";+import { NButton, NDivider } from "naive-ui";+import { computed, reactive, watchEffect } from "vue";+import { useRouter } from "vue-router";interface LocalState {showEditPanel: boolean;diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 061f11c5b5..0ee8bfd58a 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -9159,8 +9159,6 @@ components:items:$ref: '#/components/schemas/DatabaseGroup_Database'description: The list of databases that match the database group condition.- multitenancy:- type: booleanDatabaseGroup_Database:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 14759516d0..a662601845 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -1972,11 +1972,6 @@ LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| multitenancy | [bool](#bool) | | |--diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex fa65953944..a853f838e5 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -5727,23 +5727,6 @@ TRUNCATE. </p></td><p></p>- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>multitenancy</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>--diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 829f4d5200..5e364239c0 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -6101,7 +6101,6 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. || database_expr | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this database group. || matched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. || unmatched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |-| multitenancy | [bool](#bool) | | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 9cfb482ca6..4d72bdcfeb 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -17220,13 +17220,6 @@ For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1&#<td><p>The list of databases that match the database group condition. </p></td></tr>- <tr>- <td>multitenancy</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-</tbody></table>diff --git a/proto/generated-go/store/db_group.pb.go b/proto/generated-go/store/db_group.pb.goindex cb0ad46297..48ecdeaa3a 100644--- a/proto/generated-go/store/db_group.pb.go+++ b/proto/generated-go/store/db_group.pb.go@@ -23,7 +23,6 @@ const (type DatabaseGroupPayload struct {state protoimpl.MessageState `protogen:"open.v1"`- Multitenancy bool `protobuf:"varint,1,opt,name=multitenancy,proto3" json:"multitenancy,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -58,24 +57,15 @@ func (*DatabaseGroupPayload) Descriptor() ([]byte, []int) {return file_store_db_group_proto_rawDescGZIP(), []int{0}}-func (x *DatabaseGroupPayload) GetMultitenancy() bool {- if x != nil {- return x.Multitenancy- }- return false-}-var File_store_db_group_proto protoreflect.FileDescriptorvar file_store_db_group_proto_rawDesc = string([]byte{0x0a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x62, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x3a, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x22,- 0x0a, 0x0c, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x79, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x74, 0x65, 0x6e, 0x61, 0x6e,- 0x63, 0x79, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,- 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x14,+ 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,})var (diff --git a/proto/generated-go/v1/database_group_service.pb.go b/proto/generated-go/v1/database_group_service.pb.goindex ef89499d0a..0362b226a4 100644--- a/proto/generated-go/v1/database_group_service.pb.go+++ b/proto/generated-go/v1/database_group_service.pb.go@@ -455,7 +455,6 @@ type DatabaseGroup struct {MatchedDatabases []*DatabaseGroup_Database `protobuf:"bytes,4,rep,name=matched_databases,json=matchedDatabases,proto3" json:"matched_databases,omitempty"`// The list of databases that match the database group condition.UnmatchedDatabases []*DatabaseGroup_Database `protobuf:"bytes,5,rep,name=unmatched_databases,json=unmatchedDatabases,proto3" json:"unmatched_databases,omitempty"`- Multitenancy bool `protobuf:"varint,6,opt,name=multitenancy,proto3" json:"multitenancy,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -525,13 +524,6 @@ func (x *DatabaseGroup) GetUnmatchedDatabases() []*DatabaseGroup_Database {return nil}-func (x *DatabaseGroup) GetMultitenancy() bool {- if x != nil {- return x.Multitenancy- }- return false-}-type DatabaseGroup_Database struct {state protoimpl.MessageState `protogen:"open.v1"`// The resource name of the database.@@ -655,7 +647,7 @@ var file_v1_database_group_service_proto_rawDesc = string([]byte{0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61,0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,- 0xda, 0x03, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,+ 0xb6, 0x03, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,0x65, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20,@@ -675,87 +667,85 @@ var file_v1_database_group_service_proto_rawDesc = string([]byte{0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,0x70, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,0x52, 0x12, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x74, 0x65, 0x6e,- 0x61, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x75, 0x6c, 0x74,- 0x69, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x79, 0x1a, 0x1e, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x52, 0xea, 0x41, 0x4f, 0x0a, 0x1a, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x31, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x7d, 0x2a, 0x75, 0x0a, 0x11,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65,- 0x77, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52,- 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,- 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41,- 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,- 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c,- 0x4c, 0x10, 0x02, 0x32, 0xdb, 0x07, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb5, 0x01, 0x0a,- 0x12, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x73, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a,- 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67,- 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x73, 0x12, 0xa2, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x4c, 0xda, 0x41, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xcf, 0x01, 0x0a, 0x13, 0x43, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x73, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x8a,- 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x38, 0x3a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72,- 0x6f, 0x75, 0x70, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xe5, 0x01, 0x0a, 0x13,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x88, 0x01, 0xda, 0x41, 0x1a, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea,- 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x0e, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x35, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75,- 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0xab, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x53, 0xda, 0x41,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98,- 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a,- 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,- 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x61, 0x73, 0x65, 0x73, 0x1a, 0x1e, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x52, 0xea, 0x41, 0x4f, 0x0a, 0x1a, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x31, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x7d, 0x2a, 0x75, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x12, 0x23, 0x0a,+ 0x1f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f,+ 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,+ 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47,+ 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10,+ 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52,+ 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32,+ 0xdb, 0x07, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb5, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73,+ 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12,+ 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,+ 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,+ 0x22, 0x4e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x0f, 0x62,+ 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea,+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,+ 0x12, 0xa2, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x4c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e,+ 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xcf, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x22, 0x73, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x8a, 0xea, 0x30, 0x12, 0x62,+ 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x3a,+ 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22,+ 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xe5, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,+ 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x22, 0x88, 0x01, 0xda, 0x41, 0x1a, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,+ 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea,+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12,+ 0xab, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,+ 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x53, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a,+ 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31,+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,})var (diff --git a/proto/store/db_group.proto b/proto/store/db_group.protoindex 18cc0022b5..768828510d 100644--- a/proto/store/db_group.proto+++ b/proto/store/db_group.proto@@ -4,6 +4,4 @@ package bytebase.store;option go_package = "generated-go/store";-message DatabaseGroupPayload {- bool multitenancy = 1;-}+message DatabaseGroupPayload {}diff --git a/proto/v1/database_group_service.proto b/proto/v1/database_group_service.protoindex 5538c5f472..c67e76fe55 100644--- a/proto/v1/database_group_service.proto+++ b/proto/v1/database_group_service.proto@@ -185,6 +185,4 @@ message DatabaseGroup {// The list of databases that match the database group condition.repeated Database unmatched_databases = 5 [(google.api.field_behavior) = OUTPUT_ONLY];-- bool multitenancy = 6;}