Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(proto): release (#13867)
p0ny0afe36ee7ca3
diff --git a/backend/api/v1/release_service.go b/backend/api/v1/release_service.goindex a5f3f3482d..1de4ef0335 100644--- a/backend/api/v1/release_service.go+++ b/backend/api/v1/release_service.go@@ -167,10 +167,10 @@ func convertToReleaseFiles(files []*storepb.ReleasePayload_File) []*v1pb.Releasevar rFiles []*v1pb.Release_Filefor _, f := range files {rFiles = append(rFiles, &v1pb.Release_File{- Title: f.Title,+ Name: f.Name,Sheet: f.Sheet,SheetSha1: f.SheetSha1,- Type: v1pb.Release_File_Type(f.Type),+ Type: v1pb.ReleaseFileType(f.Type),Version: f.Version,})}@@ -188,10 +188,10 @@ func convertReleaseFiles(files []*v1pb.Release_File) []*storepb.ReleasePayload_Fvar rFiles []*storepb.ReleasePayload_Filefor _, f := range files {rFiles = append(rFiles, &storepb.ReleasePayload_File{- Title: f.Title,+ Name: f.Name,Sheet: f.Sheet,SheetSha1: f.SheetSha1,- Type: storepb.ReleasePayload_File_Type(f.Type),+ Type: storepb.ReleaseFileType(f.Type),Version: f.Version,})}diff --git a/frontend/src/types/proto/store/release.ts b/frontend/src/types/proto/store/release.tsindex 0b38a62c8e..0c0c19f4c7 100644--- a/frontend/src/types/proto/store/release.ts+++ b/frontend/src/types/proto/store/release.ts@@ -5,71 +5,74 @@ import { VCSType, vCSTypeFromJSON, vCSTypeToJSON, vCSTypeToNumber } from "./commexport const protobufPackage = "bytebase.store";-export interface ReleasePayload {- title: string;- files: ReleasePayload_File[];- vcsSource: ReleasePayload_VCSSource | undefined;-}--export interface ReleasePayload_File {- /** The filename. */- title: string;- /**- * The sheet that holds the content.- * Format: projects/{project}/sheets/{sheet}- */- sheet: string;- /** The SHA1 hash value of the sheet. */- sheetSha1: string;- type: ReleasePayload_File_Type;- version: string;-}--export enum ReleasePayload_File_Type {+export enum ReleaseFileType {TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",VERSIONED = "VERSIONED",UNRECOGNIZED = "UNRECOGNIZED",}-export function releasePayload_File_TypeFromJSON(object: any): ReleasePayload_File_Type {+export function releaseFileTypeFromJSON(object: any): ReleaseFileType {switch (object) {case 0:case "TYPE_UNSPECIFIED":- return ReleasePayload_File_Type.TYPE_UNSPECIFIED;+ return ReleaseFileType.TYPE_UNSPECIFIED;case 1:case "VERSIONED":- return ReleasePayload_File_Type.VERSIONED;+ return ReleaseFileType.VERSIONED;case -1:case "UNRECOGNIZED":default:- return ReleasePayload_File_Type.UNRECOGNIZED;+ return ReleaseFileType.UNRECOGNIZED;}}-export function releasePayload_File_TypeToJSON(object: ReleasePayload_File_Type): string {+export function releaseFileTypeToJSON(object: ReleaseFileType): string {switch (object) {- case ReleasePayload_File_Type.TYPE_UNSPECIFIED:+ case ReleaseFileType.TYPE_UNSPECIFIED:return "TYPE_UNSPECIFIED";- case ReleasePayload_File_Type.VERSIONED:+ case ReleaseFileType.VERSIONED:return "VERSIONED";- case ReleasePayload_File_Type.UNRECOGNIZED:+ case ReleaseFileType.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function releasePayload_File_TypeToNumber(object: ReleasePayload_File_Type): number {+export function releaseFileTypeToNumber(object: ReleaseFileType): number {switch (object) {- case ReleasePayload_File_Type.TYPE_UNSPECIFIED:+ case ReleaseFileType.TYPE_UNSPECIFIED:return 0;- case ReleasePayload_File_Type.VERSIONED:+ case ReleaseFileType.VERSIONED:return 1;- case ReleasePayload_File_Type.UNRECOGNIZED:+ case ReleaseFileType.UNRECOGNIZED:default:return -1;}}+export interface ReleasePayload {+ title: string;+ files: ReleasePayload_File[];+ vcsSource: ReleasePayload_VCSSource | undefined;+}++export interface ReleasePayload_File {+ /**+ * The name of the file.+ * Expressed as a path, e.g. `2.2/V0001_create_table.sql`+ */+ name: string;+ /**+ * The sheet that holds the content.+ * Format: projects/{project}/sheets/{sheet}+ */+ sheet: string;+ /** The SHA1 hash value of the sheet. */+ sheetSha1: string;+ type: ReleaseFileType;+ version: string;+}+export interface ReleasePayload_VCSSource {vcsType: VCSType;pullRequestUrl: string;@@ -169,13 +172,13 @@ export const ReleasePayload = {};function createBaseReleasePayload_File(): ReleasePayload_File {- return { title: "", sheet: "", sheetSha1: "", type: ReleasePayload_File_Type.TYPE_UNSPECIFIED, version: "" };+ return { name: "", sheet: "", sheetSha1: "", type: ReleaseFileType.TYPE_UNSPECIFIED, version: "" };}export const ReleasePayload_File = {encode(message: ReleasePayload_File, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.title !== "") {- writer.uint32(10).string(message.title);+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}if (message.sheet !== "") {writer.uint32(18).string(message.sheet);@@ -183,8 +186,8 @@ export const ReleasePayload_File = {if (message.sheetSha1 !== "") {writer.uint32(26).string(message.sheetSha1);}- if (message.type !== ReleasePayload_File_Type.TYPE_UNSPECIFIED) {- writer.uint32(32).int32(releasePayload_File_TypeToNumber(message.type));+ if (message.type !== ReleaseFileType.TYPE_UNSPECIFIED) {+ writer.uint32(32).int32(releaseFileTypeToNumber(message.type));}if (message.version !== "") {writer.uint32(42).string(message.version);@@ -204,7 +207,7 @@ export const ReleasePayload_File = {break;}- message.title = reader.string();+ message.name = reader.string();continue;case 2:if (tag !== 18) {@@ -225,7 +228,7 @@ export const ReleasePayload_File = {break;}- message.type = releasePayload_File_TypeFromJSON(reader.int32());+ message.type = releaseFileTypeFromJSON(reader.int32());continue;case 5:if (tag !== 42) {@@ -245,20 +248,18 @@ export const ReleasePayload_File = {fromJSON(object: any): ReleasePayload_File {return {- title: isSet(object.title) ? globalThis.String(object.title) : "",+ name: isSet(object.name) ? globalThis.String(object.name) : "",sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",sheetSha1: isSet(object.sheetSha1) ? globalThis.String(object.sheetSha1) : "",- type: isSet(object.type)- ? releasePayload_File_TypeFromJSON(object.type)- : ReleasePayload_File_Type.TYPE_UNSPECIFIED,+ type: isSet(object.type) ? releaseFileTypeFromJSON(object.type) : ReleaseFileType.TYPE_UNSPECIFIED,version: isSet(object.version) ? globalThis.String(object.version) : "",};},toJSON(message: ReleasePayload_File): unknown {const obj: any = {};- if (message.title !== "") {- obj.title = message.title;+ if (message.name !== "") {+ obj.name = message.name;}if (message.sheet !== "") {obj.sheet = message.sheet;@@ -266,8 +267,8 @@ export const ReleasePayload_File = {if (message.sheetSha1 !== "") {obj.sheetSha1 = message.sheetSha1;}- if (message.type !== ReleasePayload_File_Type.TYPE_UNSPECIFIED) {- obj.type = releasePayload_File_TypeToJSON(message.type);+ if (message.type !== ReleaseFileType.TYPE_UNSPECIFIED) {+ obj.type = releaseFileTypeToJSON(message.type);}if (message.version !== "") {obj.version = message.version;@@ -280,10 +281,10 @@ export const ReleasePayload_File = {},fromPartial(object: DeepPartial<ReleasePayload_File>): ReleasePayload_File {const message = createBaseReleasePayload_File();- message.title = object.title ?? "";+ message.name = object.name ?? "";message.sheet = object.sheet ?? "";message.sheetSha1 = object.sheetSha1 ?? "";- message.type = object.type ?? ReleasePayload_File_Type.TYPE_UNSPECIFIED;+ message.type = object.type ?? ReleaseFileType.TYPE_UNSPECIFIED;message.version = object.version ?? "";return message;},diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex dcc83749fd..ab166babc1 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -225,7 +225,7 @@- [ReleasePayload.File](#bytebase-store-ReleasePayload-File)- [ReleasePayload.VCSSource](#bytebase-store-ReleasePayload-VCSSource)- - [ReleasePayload.File.Type](#bytebase-store-ReleasePayload-File-Type)+ - [ReleaseFileType](#bytebase-store-ReleaseFileType)- [store/review_config.proto](#store_review_config-proto)- [ReviewConfigPayload](#bytebase-store-ReviewConfigPayload)@@ -3494,10 +3494,10 @@ SlowQueryPolicy is the policy configuration for slow query.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| title | [string](#string) | | The filename. |+| name | [string](#string) | | The name of the file. Expressed as a path, e.g. `2.2/V0001_create_table.sql` || sheet | [string](#string) | | The sheet that holds the content. Format: projects/{project}/sheets/{sheet} || sheet_sha1 | [string](#string) | | The SHA1 hash value of the sheet. |-| type | [ReleasePayload.File.Type](#bytebase-store-ReleasePayload-File-Type) | | |+| type | [ReleaseFileType](#bytebase-store-ReleaseFileType) | | || version | [string](#string) | | |@@ -3523,9 +3523,9 @@ SlowQueryPolicy is the policy configuration for slow query.-<a name="bytebase-store-ReleasePayload-File-Type"></a>+<a name="bytebase-store-ReleaseFileType"></a>-### ReleasePayload.File.Type+### ReleaseFileType| Name | Number | Description |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex b96ea8ebcc..8e15db992c 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -1081,7 +1081,7 @@<li>- <a href="#bytebase.store.ReleasePayload.File.Type"><span class="badge">E</span>ReleasePayload.File.Type</a>+ <a href="#bytebase.store.ReleaseFileType"><span class="badge">E</span>ReleaseFileType</a></li>@@ -8886,10 +8886,11 @@ IM integration setting should be set for this function to work. </p></td><tbody><tr>- <td>title</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The filename. </p></td>+ <td><p>The name of the file.+Expressed as a path, e.g. `2.2/V0001_create_table.sql` </p></td></tr><tr>@@ -8909,7 +8910,7 @@ Format: projects/{project}/sheets/{sheet} </p></td><tr><td>type</td>- <td><a href="#bytebase.store.ReleasePayload.File.Type">ReleasePayload.File.Type</a></td>+ <td><a href="#bytebase.store.ReleaseFileType">ReleaseFileType</a></td><td></td><td><p> </p></td></tr>@@ -8961,7 +8962,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.store.ReleasePayload.File.Type">ReleasePayload.File.Type</h3>+ <h3 id="bytebase.store.ReleaseFileType">ReleaseFileType</h3><p></p><table class="enum-table"><thead>diff --git a/proto/generated-go/store/release.pb.go b/proto/generated-go/store/release.pb.goindex 0a528852e0..fdb4277e04 100644--- a/proto/generated-go/store/release.pb.go+++ b/proto/generated-go/store/release.pb.go@@ -21,50 +21,50 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))-type ReleasePayload_File_Type int32+type ReleaseFileType int32const (- ReleasePayload_File_TYPE_UNSPECIFIED ReleasePayload_File_Type = 0- ReleasePayload_File_VERSIONED ReleasePayload_File_Type = 1+ ReleaseFileType_TYPE_UNSPECIFIED ReleaseFileType = 0+ ReleaseFileType_VERSIONED ReleaseFileType = 1)-// Enum value maps for ReleasePayload_File_Type.+// Enum value maps for ReleaseFileType.var (- ReleasePayload_File_Type_name = map[int32]string{+ ReleaseFileType_name = map[int32]string{0: "TYPE_UNSPECIFIED",1: "VERSIONED",}- ReleasePayload_File_Type_value = map[string]int32{+ ReleaseFileType_value = map[string]int32{"TYPE_UNSPECIFIED": 0,"VERSIONED": 1,})-func (x ReleasePayload_File_Type) Enum() *ReleasePayload_File_Type {- p := new(ReleasePayload_File_Type)+func (x ReleaseFileType) Enum() *ReleaseFileType {+ p := new(ReleaseFileType)*p = xreturn p}-func (x ReleasePayload_File_Type) String() string {+func (x ReleaseFileType) String() string {return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))}-func (ReleasePayload_File_Type) Descriptor() protoreflect.EnumDescriptor {+func (ReleaseFileType) Descriptor() protoreflect.EnumDescriptor {return file_store_release_proto_enumTypes[0].Descriptor()}-func (ReleasePayload_File_Type) Type() protoreflect.EnumType {+func (ReleaseFileType) Type() protoreflect.EnumType {return &file_store_release_proto_enumTypes[0]}-func (x ReleasePayload_File_Type) Number() protoreflect.EnumNumber {+func (x ReleaseFileType) Number() protoreflect.EnumNumber {return protoreflect.EnumNumber(x)}-// Deprecated: Use ReleasePayload_File_Type.Descriptor instead.-func (ReleasePayload_File_Type) EnumDescriptor() ([]byte, []int) {- return file_store_release_proto_rawDescGZIP(), []int{0, 0, 0}+// Deprecated: Use ReleaseFileType.Descriptor instead.+func (ReleaseFileType) EnumDescriptor() ([]byte, []int) {+ return file_store_release_proto_rawDescGZIP(), []int{0}}type ReleasePayload struct {@@ -135,15 +135,16 @@ type ReleasePayload_File struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The filename.- Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ // The name of the file.+ // Expressed as a path, e.g. `2.2/V0001_create_table.sql`+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`// The sheet that holds the content.// Format: projects/{project}/sheets/{sheet}Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`// The SHA1 hash value of the sheet.- SheetSha1 string `protobuf:"bytes,3,opt,name=sheet_sha1,json=sheetSha1,proto3" json:"sheet_sha1,omitempty"`- Type ReleasePayload_File_Type `protobuf:"varint,4,opt,name=type,proto3,enum=bytebase.store.ReleasePayload_File_Type" json:"type,omitempty"`- Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`+ SheetSha1 string `protobuf:"bytes,3,opt,name=sheet_sha1,json=sheetSha1,proto3" json:"sheet_sha1,omitempty"`+ Type ReleaseFileType `protobuf:"varint,4,opt,name=type,proto3,enum=bytebase.store.ReleaseFileType" json:"type,omitempty"`+ Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`}func (x *ReleasePayload_File) Reset() {@@ -178,9 +179,9 @@ func (*ReleasePayload_File) Descriptor() ([]byte, []int) {return file_store_release_proto_rawDescGZIP(), []int{0, 0}}-func (x *ReleasePayload_File) GetTitle() string {+func (x *ReleasePayload_File) GetName() string {if x != nil {- return x.Title+ return x.Name}return ""}@@ -199,11 +200,11 @@ func (x *ReleasePayload_File) GetSheetSha1() string {return ""}-func (x *ReleasePayload_File) GetType() ReleasePayload_File_Type {+func (x *ReleasePayload_File) GetType() ReleaseFileType {if x != nil {return x.Type}- return ReleasePayload_File_TYPE_UNSPECIFIED+ return ReleaseFileType_TYPE_UNSPECIFIED}func (x *ReleasePayload_File) GetVersion() string {@@ -276,7 +277,7 @@ var file_store_release_proto_rawDesc = []byte{0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x04, 0x0a, 0x0e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x03, 0x0a, 0x0e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x39, 0x0a,0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62,@@ -287,28 +288,28 @@ var file_store_release_proto_rawDesc = []byte{0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65,0x6c, 0x65, 0x61, 0x73, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x56, 0x43, 0x53,0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x1a, 0xef, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,- 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,- 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,- 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,- 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12,- 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x31, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x31, 0x12, 0x3c,- 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65,- 0x6c, 0x65, 0x61, 0x73, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x46, 0x69, 0x6c,- 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07,- 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2b, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,- 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,- 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x45,- 0x44, 0x10, 0x01, 0x1a, 0x69, 0x0a, 0x09, 0x56, 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,- 0x12, 0x32, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x63, 0x73,- 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,- 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x42, 0x14,+ 0x65, 0x1a, 0xb7, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d,+ 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x17, 0xfa,+ 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d,+ 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1d, 0x0a,+ 0x0a, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x31, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x09, 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x31, 0x12, 0x33, 0x0a, 0x04,+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x69, 0x0a, 0x09, 0x56,+ 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f,+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x43, 0x53, 0x54,+ 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10,+ 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x2a, 0x36, 0x0a, 0x0f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,+ 0x65, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x0d, 0x0a, 0x09, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, 0x01, 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,}@@ -328,7 +329,7 @@ func file_store_release_proto_rawDescGZIP() []byte {var file_store_release_proto_enumTypes = make([]protoimpl.EnumInfo, 1)var file_store_release_proto_msgTypes = make([]protoimpl.MessageInfo, 3)var file_store_release_proto_goTypes = []any{- (ReleasePayload_File_Type)(0), // 0: bytebase.store.ReleasePayload.File.Type+ (ReleaseFileType)(0), // 0: bytebase.store.ReleaseFileType(*ReleasePayload)(nil), // 1: bytebase.store.ReleasePayload(*ReleasePayload_File)(nil), // 2: bytebase.store.ReleasePayload.File(*ReleasePayload_VCSSource)(nil), // 3: bytebase.store.ReleasePayload.VCSSource@@ -337,7 +338,7 @@ var file_store_release_proto_goTypes = []any{var file_store_release_proto_depIdxs = []int32{2, // 0: bytebase.store.ReleasePayload.files:type_name -> bytebase.store.ReleasePayload.File3, // 1: bytebase.store.ReleasePayload.vcs_source:type_name -> bytebase.store.ReleasePayload.VCSSource- 0, // 2: bytebase.store.ReleasePayload.File.type:type_name -> bytebase.store.ReleasePayload.File.Type+ 0, // 2: bytebase.store.ReleasePayload.File.type:type_name -> bytebase.store.ReleaseFileType4, // 3: bytebase.store.ReleasePayload.VCSSource.vcs_type:type_name -> bytebase.store.VCSType4, // [4:4] is the sub-list for method output_type4, // [4:4] is the sub-list for method input_typediff --git a/proto/store/release.proto b/proto/store/release.protoindex 60f5aea0e5..08cb543ad6 100644--- a/proto/store/release.proto+++ b/proto/store/release.proto@@ -15,20 +15,16 @@ message ReleasePayload {VCSSource vcs_source = 3;message File {- // The filename.- string title = 1;+ // The name of the file.+ // Expressed as a path, e.g. `2.2/V0001_create_table.sql`+ string name = 1;// The sheet that holds the content.// Format: projects/{project}/sheets/{sheet}string sheet = 2 [(google.api.resource_reference) = {type: "bytebase.com/Sheet"}];// The SHA1 hash value of the sheet.string sheet_sha1 = 3;- Type type = 4;+ ReleaseFileType type = 4;string version = 5;-- enum Type {- TYPE_UNSPECIFIED = 0;- VERSIONED = 1;- }}message VCSSource {@@ -36,3 +32,8 @@ message ReleasePayload {string pull_request_url = 2;}}++enum ReleaseFileType {+ TYPE_UNSPECIFIED = 0;+ VERSIONED = 1;+}