Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: replace PriorBackupDetail with has_prior_backup boolean in TaskRunResult (#18766)
Danny Xufdb7454ed0be
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex e4165843c2..a5172f22d0 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -16105,10 +16105,13 @@ components:title: export_archive_statusdescription: The export archive status for data export tasks.$ref: '#/components/schemas/bytebase.v1.TaskRun.ExportArchiveStatus'- priorBackupDetail:- title: prior_backup_detail- description: The prior backup detail that will be used to rollback the task run.- $ref: '#/components/schemas/bytebase.v1.TaskRun.PriorBackupDetail'+ hasPriorBackup:+ type: boolean+ title: has_prior_backup+ description: |-+ Indicates whether a prior backup was created for this task run.+ When true, rollback SQL can be generated via PreviewTaskRunRollback.+ Backup details are available in the task run logs.schedulerInfo:title: scheduler_infodescription: Scheduling information about the task run.@@ -16129,60 +16132,6 @@ components:- EXPORT_ARCHIVE_STATUS_UNSPECIFIED- READY- EXPORTED- bytebase.v1.TaskRun.PriorBackupDetail:- type: object- properties:- items:- type: array- items:- $ref: '#/components/schemas/bytebase.v1.TaskRun.PriorBackupDetail.Item'- title: items- description: The list of backed up tables.- title: PriorBackupDetail- additionalProperties: false- description: Prior backup detail for rollback purposes.- bytebase.v1.TaskRun.PriorBackupDetail.Item:- type: object- properties:- sourceTable:- title: source_table- description: The original table information.- $ref: '#/components/schemas/bytebase.v1.TaskRun.PriorBackupDetail.Item.Table'- targetTable:- title: target_table- description: The target backup table information.- $ref: '#/components/schemas/bytebase.v1.TaskRun.PriorBackupDetail.Item.Table'- startPosition:- title: start_position- description: The start position in the SQL statement.- $ref: '#/components/schemas/bytebase.v1.Position'- endPosition:- title: end_position- description: The end position in the SQL statement.- $ref: '#/components/schemas/bytebase.v1.Position'- title: Item- additionalProperties: false- description: A single backup table mapping.- bytebase.v1.TaskRun.PriorBackupDetail.Item.Table:- type: object- properties:- database:- type: string- title: database- description: |-- The database information.- Format: instances/{instance}/databases/{database}- schema:- type: string- title: schema- description: The schema name.- table:- type: string- title: table- description: The table name.- title: Table- additionalProperties: false- description: Table information.bytebase.v1.TaskRun.SchedulerInfo:type: objectproperties:@@ -16397,7 +16346,7 @@ components:priorBackupDetail:title: prior_backup_detaildescription: The backup details.- $ref: '#/components/schemas/bytebase.v1.TaskRun.PriorBackupDetail'+ $ref: '#/components/schemas/bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail'error:type: stringtitle: error@@ -16405,6 +16354,60 @@ components:title: PriorBackupadditionalProperties: falsedescription: Prior backup operation details.+ bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail:+ type: object+ properties:+ items:+ type: array+ items:+ $ref: '#/components/schemas/bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item'+ title: items+ description: The list of backed up tables.+ title: PriorBackupDetail+ additionalProperties: false+ description: Prior backup detail for rollback purposes.+ bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item:+ type: object+ properties:+ sourceTable:+ title: source_table+ description: The original table information.+ $ref: '#/components/schemas/bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table'+ targetTable:+ title: target_table+ description: The target backup table information.+ $ref: '#/components/schemas/bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table'+ startPosition:+ title: start_position+ description: The start position in the SQL statement.+ $ref: '#/components/schemas/bytebase.v1.Position'+ endPosition:+ title: end_position+ description: The end position in the SQL statement.+ $ref: '#/components/schemas/bytebase.v1.Position'+ title: Item+ additionalProperties: false+ description: A single backup table mapping.+ bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table:+ type: object+ properties:+ database:+ type: string+ title: database+ description: |-+ The database information.+ Format: instances/{instance}/databases/{database}+ schema:+ type: string+ title: schema+ description: The schema name.+ table:+ type: string+ title: table+ description: The table name.+ title: Table+ additionalProperties: false+ description: Table information.bytebase.v1.TaskRunLogEntry.ReleaseFileExecute:type: objectproperties:diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.goindex bbb1cba28c..a834935066 100644--- a/backend/api/v1/rollout_service.go+++ b/backend/api/v1/rollout_service.go@@ -974,11 +974,26 @@ func (s *RolloutService) PreviewTaskRunRollback(ctx context.Context, req *connecreturn nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("task run %v has no result", taskRun.ID))}- backupDetail := taskRun.ResultProto.PriorBackupDetail- if backupDetail == nil {+ if !taskRun.ResultProto.HasPriorBackup {return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("task run %v has no rollback", taskRun.ID))}+ // Get backup detail from task run logs.+ logs, err := s.store.ListTaskRunLogs(ctx, taskRunUID)+ if err != nil {+ return nil, connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to list task run logs"))+ }+ var backupDetail *storepb.PriorBackupDetail+ for _, log := range logs {+ if log.Payload.Type == storepb.TaskRunLog_PRIOR_BACKUP_END && log.Payload.PriorBackupEnd != nil {+ backupDetail = log.Payload.PriorBackupEnd.PriorBackupDetail+ break+ }+ }+ if backupDetail == nil {+ return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("task run %v has no backup detail in logs", taskRun.ID))+ }+task, err := s.store.GetTaskByID(ctx, taskUID)if err != nil {return nil, connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to get task"))diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.goindex a7fbea0ac2..47bfd1d83d 100644--- a/backend/api/v1/rollout_service_converter.go+++ b/backend/api/v1/rollout_service_converter.go@@ -71,9 +71,7 @@ func convertToTaskRun(ctx context.Context, s *store.Store, bus *bus.Bus, taskRun}}- if taskRun.ResultProto.PriorBackupDetail != nil {- t.PriorBackupDetail = convertToTaskRunPriorBackupDetail(taskRun.ResultProto.PriorBackupDetail)- }+ t.HasPriorBackup = taskRun.ResultProto.HasPriorBackupreturn t, nil}@@ -124,28 +122,28 @@ func convertToTaskRunStatus(status storepb.TaskRun_Status) v1pb.TaskRun_Status {}}-func convertToTaskRunPriorBackupDetail(priorBackupDetail *storepb.PriorBackupDetail) *v1pb.TaskRun_PriorBackupDetail {+func convertToTaskRunLogPriorBackupDetail(priorBackupDetail *storepb.PriorBackupDetail) *v1pb.TaskRunLogEntry_PriorBackup_PriorBackupDetail {if priorBackupDetail == nil {return nil}- convertTable := func(table *storepb.PriorBackupDetail_Item_Table) *v1pb.TaskRun_PriorBackupDetail_Item_Table {- return &v1pb.TaskRun_PriorBackupDetail_Item_Table{+ convertTable := func(table *storepb.PriorBackupDetail_Item_Table) *v1pb.TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table {+ return &v1pb.TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table{Database: table.Database,Schema: table.Schema,Table: table.Table,}}- items := []*v1pb.TaskRun_PriorBackupDetail_Item{}+ items := []*v1pb.TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item{}for _, item := range priorBackupDetail.Items {- items = append(items, &v1pb.TaskRun_PriorBackupDetail_Item{+ items = append(items, &v1pb.TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item{SourceTable: convertTable(item.SourceTable),TargetTable: convertTable(item.TargetTable),StartPosition: convertToPosition(item.StartPosition),EndPosition: convertToPosition(item.EndPosition),})}- return &v1pb.TaskRun_PriorBackupDetail{+ return &v1pb.TaskRunLogEntry_PriorBackup_PriorBackupDetail{Items: items,}}@@ -507,7 +505,7 @@ func convertToTaskRunLogEntries(logs []*store.TaskRunLog) []*v1pb.TaskRunLogEntr}prev.PriorBackup.EndTime = timestamppb.New(l.T)prev.PriorBackup.Error = l.Payload.PriorBackupEnd.Error- prev.PriorBackup.PriorBackupDetail = convertToTaskRunPriorBackupDetail(l.Payload.PriorBackupEnd.PriorBackupDetail)+ prev.PriorBackup.PriorBackupDetail = convertToTaskRunLogPriorBackupDetail(l.Payload.PriorBackupEnd.PriorBackupDetail)case storepb.TaskRunLog_COMPUTE_DIFF_START:e := &v1pb.TaskRunLogEntry{diff --git a/backend/generated-go/store/task_run.pb.go b/backend/generated-go/store/task_run.pb.goindex 1e36b7821e..6f155f6a29 100644--- a/backend/generated-go/store/task_run.pb.go+++ b/backend/generated-go/store/task_run.pb.go@@ -142,10 +142,12 @@ type TaskRunResult struct {Detail string `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"`// UID of the export archive generated for export tasks.ExportArchiveUid int32 `protobuf:"varint,5,opt,name=export_archive_uid,json=exportArchiveUid,proto3" json:"export_archive_uid,omitempty"`- // Backup details that can be used to rollback changes.- PriorBackupDetail *PriorBackupDetail `protobuf:"bytes,6,opt,name=prior_backup_detail,json=priorBackupDetail,proto3" json:"prior_backup_detail,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // Indicates whether a prior backup was created for this task run.+ // When true, the task run can be rolled back using the backup tables.+ // Backup details are available in the task run logs (PRIOR_BACKUP log entries).+ HasPriorBackup bool `protobuf:"varint,6,opt,name=has_prior_backup,json=hasPriorBackup,proto3" json:"has_prior_backup,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *TaskRunResult) Reset() {@@ -192,57 +194,11 @@ func (x *TaskRunResult) GetExportArchiveUid() int32 {return 0}-func (x *TaskRunResult) GetPriorBackupDetail() *PriorBackupDetail {+func (x *TaskRunResult) GetHasPriorBackup() bool {if x != nil {- return x.PriorBackupDetail+ return x.HasPriorBackup}- return nil-}--// PriorBackupDetail contains information about automatic backups created before migration.-type PriorBackupDetail struct {- state protoimpl.MessageState `protogen:"open.v1"`- // List of backup operations performed.- Items []*PriorBackupDetail_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *PriorBackupDetail) Reset() {- *x = PriorBackupDetail{}- mi := &file_store_task_run_proto_msgTypes[2]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *PriorBackupDetail) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PriorBackupDetail) ProtoMessage() {}--func (x *PriorBackupDetail) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_proto_msgTypes[2]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use PriorBackupDetail.ProtoReflect.Descriptor instead.-func (*PriorBackupDetail) Descriptor() ([]byte, []int) {- return file_store_task_run_proto_rawDescGZIP(), []int{2}-}--func (x *PriorBackupDetail) GetItems() []*PriorBackupDetail_Item {- if x != nil {- return x.Items- }- return nil+ return false}// SchedulerInfo contains information about task scheduling and execution delays.@@ -258,7 +214,7 @@ type SchedulerInfo struct {func (x *SchedulerInfo) Reset() {*x = SchedulerInfo{}- mi := &file_store_task_run_proto_msgTypes[3]+ mi := &file_store_task_run_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -270,7 +226,7 @@ func (x *SchedulerInfo) String() string {func (*SchedulerInfo) ProtoMessage() {}func (x *SchedulerInfo) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_proto_msgTypes[3]+ mi := &file_store_task_run_proto_msgTypes[2]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -283,7 +239,7 @@ func (x *SchedulerInfo) ProtoReflect() protoreflect.Message {// Deprecated: Use SchedulerInfo.ProtoReflect.Descriptor instead.func (*SchedulerInfo) Descriptor() ([]byte, []int) {- return file_store_task_run_proto_rawDescGZIP(), []int{3}+ return file_store_task_run_proto_rawDescGZIP(), []int{2}}func (x *SchedulerInfo) GetReportTime() *timestamppb.Timestamp {@@ -300,144 +256,6 @@ func (x *SchedulerInfo) GetWaitingCause() *SchedulerInfo_WaitingCause {return nil}-// Item represents a single backup operation for a table.-type PriorBackupDetail_Item struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The original table that was backed up.- SourceTable *PriorBackupDetail_Item_Table `protobuf:"bytes,1,opt,name=source_table,json=sourceTable,proto3" json:"source_table,omitempty"`- // The backup table where data was copied.- TargetTable *PriorBackupDetail_Item_Table `protobuf:"bytes,2,opt,name=target_table,json=targetTable,proto3" json:"target_table,omitempty"`- // Starting position in SQL for this backup operation.- StartPosition *Position `protobuf:"bytes,3,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`- // Ending position in SQL for this backup operation.- EndPosition *Position `protobuf:"bytes,4,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *PriorBackupDetail_Item) Reset() {- *x = PriorBackupDetail_Item{}- mi := &file_store_task_run_proto_msgTypes[4]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *PriorBackupDetail_Item) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PriorBackupDetail_Item) ProtoMessage() {}--func (x *PriorBackupDetail_Item) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_proto_msgTypes[4]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use PriorBackupDetail_Item.ProtoReflect.Descriptor instead.-func (*PriorBackupDetail_Item) Descriptor() ([]byte, []int) {- return file_store_task_run_proto_rawDescGZIP(), []int{2, 0}-}--func (x *PriorBackupDetail_Item) GetSourceTable() *PriorBackupDetail_Item_Table {- if x != nil {- return x.SourceTable- }- return nil-}--func (x *PriorBackupDetail_Item) GetTargetTable() *PriorBackupDetail_Item_Table {- if x != nil {- return x.TargetTable- }- return nil-}--func (x *PriorBackupDetail_Item) GetStartPosition() *Position {- if x != nil {- return x.StartPosition- }- return nil-}--func (x *PriorBackupDetail_Item) GetEndPosition() *Position {- if x != nil {- return x.EndPosition- }- return nil-}--// Table identifies a database table.-type PriorBackupDetail_Item_Table struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The database containing the table.- // Format: instances/{instance}/databases/{database}- Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`- // Schema name (for databases that support schemas).- Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`- // Table name.- Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *PriorBackupDetail_Item_Table) Reset() {- *x = PriorBackupDetail_Item_Table{}- mi := &file_store_task_run_proto_msgTypes[5]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *PriorBackupDetail_Item_Table) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PriorBackupDetail_Item_Table) ProtoMessage() {}--func (x *PriorBackupDetail_Item_Table) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_proto_msgTypes[5]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use PriorBackupDetail_Item_Table.ProtoReflect.Descriptor instead.-func (*PriorBackupDetail_Item_Table) Descriptor() ([]byte, []int) {- return file_store_task_run_proto_rawDescGZIP(), []int{2, 0, 0}-}--func (x *PriorBackupDetail_Item_Table) GetDatabase() string {- if x != nil {- return x.Database- }- return ""-}--func (x *PriorBackupDetail_Item_Table) GetSchema() string {- if x != nil {- return x.Schema- }- return ""-}--func (x *PriorBackupDetail_Item_Table) GetTable() string {- if x != nil {- return x.Table- }- return ""-}-// WaitingCause indicates why a task run is waiting to execute.type SchedulerInfo_WaitingCause struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -453,7 +271,7 @@ type SchedulerInfo_WaitingCause struct {func (x *SchedulerInfo_WaitingCause) Reset() {*x = SchedulerInfo_WaitingCause{}- mi := &file_store_task_run_proto_msgTypes[6]+ mi := &file_store_task_run_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -465,7 +283,7 @@ func (x *SchedulerInfo_WaitingCause) String() string {func (*SchedulerInfo_WaitingCause) ProtoMessage() {}func (x *SchedulerInfo_WaitingCause) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_proto_msgTypes[6]+ mi := &file_store_task_run_proto_msgTypes[3]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -478,7 +296,7 @@ func (x *SchedulerInfo_WaitingCause) ProtoReflect() protoreflect.Message {// Deprecated: Use SchedulerInfo_WaitingCause.ProtoReflect.Descriptor instead.func (*SchedulerInfo_WaitingCause) Descriptor() ([]byte, []int) {- return file_store_task_run_proto_rawDescGZIP(), []int{3, 0}+ return file_store_task_run_proto_rawDescGZIP(), []int{2, 0}}func (x *SchedulerInfo_WaitingCause) GetCause() isSchedulerInfo_WaitingCause_Cause {@@ -544,7 +362,7 @@ var File_store_task_run_proto protoreflect.FileDescriptorconst file_store_task_run_proto_rawDesc = "" +"\n" +- "\x14store/task_run.proto\x12\x0ebytebase.store\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12store/common.proto\"\x97\x01\n" ++ "\x14store/task_run.proto\x12\x0ebytebase.store\x1a\x1fgoogle/protobuf/timestamp.proto\"\x97\x01\n" +"\aTaskRun\"\x8b\x01\n" +"\x06Status\x12\x16\n" +"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +@@ -556,22 +374,11 @@ const file_store_task_run_proto_rawDesc = "" +"\bCANCELED\x10\x05\x12\x0f\n" +"\vNOT_STARTED\x10\x06\x12\v\n" +"\aSKIPPED\x10\a\x12\r\n" +- "\tAVAILABLE\x10\b\"\xa8\x01\n" ++ "\tAVAILABLE\x10\b\"\x7f\n" +"\rTaskRunResult\x12\x16\n" +"\x06detail\x18\x01 \x01(\tR\x06detail\x12,\n" +- "\x12export_archive_uid\x18\x05 \x01(\x05R\x10exportArchiveUid\x12Q\n" +- "\x13prior_backup_detail\x18\x06 \x01(\v2!.bytebase.store.PriorBackupDetailR\x11priorBackupDetail\"\xcd\x03\n" +- "\x11PriorBackupDetail\x12<\n" +- "\x05items\x18\x01 \x03(\v2&.bytebase.store.PriorBackupDetail.ItemR\x05items\x1a\xf9\x02\n" +- "\x04Item\x12O\n" +- "\fsource_table\x18\x01 \x01(\v2,.bytebase.store.PriorBackupDetail.Item.TableR\vsourceTable\x12O\n" +- "\ftarget_table\x18\x02 \x01(\v2,.bytebase.store.PriorBackupDetail.Item.TableR\vtargetTable\x12?\n" +- "\x0estart_position\x18\x03 \x01(\v2\x18.bytebase.store.PositionR\rstartPosition\x12;\n" +- "\fend_position\x18\x04 \x01(\v2\x18.bytebase.store.PositionR\vendPosition\x1aQ\n" +- "\x05Table\x12\x1a\n" +- "\bdatabase\x18\x01 \x01(\tR\bdatabase\x12\x16\n" +- "\x06schema\x18\x02 \x01(\tR\x06schema\x12\x14\n" +- "\x05table\x18\x03 \x01(\tR\x05table\"\xb5\x02\n" ++ "\x12export_archive_uid\x18\x05 \x01(\x05R\x10exportArchiveUid\x12(\n" ++ "\x10has_prior_backup\x18\x06 \x01(\bR\x0ehasPriorBackup\"\xb5\x02\n" +"\rSchedulerInfo\x12;\n" +"\vreport_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\n" +"reportTime\x12O\n" +@@ -596,33 +403,23 @@ func file_store_task_run_proto_rawDescGZIP() []byte {}var file_store_task_run_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_store_task_run_proto_msgTypes = make([]protoimpl.MessageInfo, 7)+var file_store_task_run_proto_msgTypes = make([]protoimpl.MessageInfo, 4)var file_store_task_run_proto_goTypes = []any{- (TaskRun_Status)(0), // 0: bytebase.store.TaskRun.Status- (*TaskRun)(nil), // 1: bytebase.store.TaskRun- (*TaskRunResult)(nil), // 2: bytebase.store.TaskRunResult- (*PriorBackupDetail)(nil), // 3: bytebase.store.PriorBackupDetail- (*SchedulerInfo)(nil), // 4: bytebase.store.SchedulerInfo- (*PriorBackupDetail_Item)(nil), // 5: bytebase.store.PriorBackupDetail.Item- (*PriorBackupDetail_Item_Table)(nil), // 6: bytebase.store.PriorBackupDetail.Item.Table- (*SchedulerInfo_WaitingCause)(nil), // 7: bytebase.store.SchedulerInfo.WaitingCause- (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp- (*Position)(nil), // 9: bytebase.store.Position+ (TaskRun_Status)(0), // 0: bytebase.store.TaskRun.Status+ (*TaskRun)(nil), // 1: bytebase.store.TaskRun+ (*TaskRunResult)(nil), // 2: bytebase.store.TaskRunResult+ (*SchedulerInfo)(nil), // 3: bytebase.store.SchedulerInfo+ (*SchedulerInfo_WaitingCause)(nil), // 4: bytebase.store.SchedulerInfo.WaitingCause+ (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp}var file_store_task_run_proto_depIdxs = []int32{- 3, // 0: bytebase.store.TaskRunResult.prior_backup_detail:type_name -> bytebase.store.PriorBackupDetail- 5, // 1: bytebase.store.PriorBackupDetail.items:type_name -> bytebase.store.PriorBackupDetail.Item- 8, // 2: bytebase.store.SchedulerInfo.report_time:type_name -> google.protobuf.Timestamp- 7, // 3: bytebase.store.SchedulerInfo.waiting_cause:type_name -> bytebase.store.SchedulerInfo.WaitingCause- 6, // 4: bytebase.store.PriorBackupDetail.Item.source_table:type_name -> bytebase.store.PriorBackupDetail.Item.Table- 6, // 5: bytebase.store.PriorBackupDetail.Item.target_table:type_name -> bytebase.store.PriorBackupDetail.Item.Table- 9, // 6: bytebase.store.PriorBackupDetail.Item.start_position:type_name -> bytebase.store.Position- 9, // 7: bytebase.store.PriorBackupDetail.Item.end_position:type_name -> bytebase.store.Position- 8, // [8:8] is the sub-list for method output_type- 8, // [8:8] is the sub-list for method input_type- 8, // [8:8] is the sub-list for extension type_name- 8, // [8:8] is the sub-list for extension extendee- 0, // [0:8] is the sub-list for field type_name+ 5, // 0: bytebase.store.SchedulerInfo.report_time:type_name -> google.protobuf.Timestamp+ 4, // 1: bytebase.store.SchedulerInfo.waiting_cause:type_name -> bytebase.store.SchedulerInfo.WaitingCause+ 2, // [2:2] is the sub-list for method output_type+ 2, // [2:2] is the sub-list for method input_type+ 2, // [2:2] is the sub-list for extension type_name+ 2, // [2:2] is the sub-list for extension extendee+ 0, // [0:2] is the sub-list for field type_name}func init() { file_store_task_run_proto_init() }@@ -630,8 +427,7 @@ func file_store_task_run_proto_init() {if File_store_task_run_proto != nil {return}- file_store_common_proto_init()- file_store_task_run_proto_msgTypes[6].OneofWrappers = []any{+ file_store_task_run_proto_msgTypes[3].OneofWrappers = []any{(*SchedulerInfo_WaitingCause_ConnectionLimit)(nil),(*SchedulerInfo_WaitingCause_TaskUid)(nil),(*SchedulerInfo_WaitingCause_ParallelTasksLimit)(nil),@@ -642,7 +438,7 @@ func file_store_task_run_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_task_run_proto_rawDesc), len(file_store_task_run_proto_rawDesc)),NumEnums: 1,- NumMessages: 7,+ NumMessages: 4,NumExtensions: 0,NumServices: 0,},diff --git a/backend/generated-go/store/task_run_equal.pb.go b/backend/generated-go/store/task_run_equal.pb.goindex 1b6945daa7..09ac312299 100644--- a/backend/generated-go/store/task_run_equal.pb.go+++ b/backend/generated-go/store/task_run_equal.pb.go@@ -26,71 +26,12 @@ func (x *TaskRunResult) Equal(y *TaskRunResult) bool {if x.ExportArchiveUid != y.ExportArchiveUid {return false}- if !x.PriorBackupDetail.Equal(y.PriorBackupDetail) {+ if x.HasPriorBackup != y.HasPriorBackup {return false}return true}-func (x *PriorBackupDetail_Item_Table) Equal(y *PriorBackupDetail_Item_Table) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if x.Database != y.Database {- return false- }- if x.Schema != y.Schema {- return false- }- if x.Table != y.Table {- return false- }- return true-}--func (x *PriorBackupDetail_Item) Equal(y *PriorBackupDetail_Item) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if !x.SourceTable.Equal(y.SourceTable) {- return false- }- if !x.TargetTable.Equal(y.TargetTable) {- return false- }- if !x.StartPosition.Equal(y.StartPosition) {- return false- }- if !x.EndPosition.Equal(y.EndPosition) {- return false- }- return true-}--func (x *PriorBackupDetail) Equal(y *PriorBackupDetail) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if len(x.Items) != len(y.Items) {- return false- }- for i := 0; i < len(x.Items); i++ {- if !x.Items[i].Equal(y.Items[i]) {- return false- }- }- return true-}-func (x *SchedulerInfo_WaitingCause) Equal(y *SchedulerInfo_WaitingCause) bool {if x == y {return truediff --git a/backend/generated-go/store/task_run_log.pb.go b/backend/generated-go/store/task_run_log.pb.goindex 48eeb68f81..afbd612a37 100644--- a/backend/generated-go/store/task_run_log.pb.go+++ b/backend/generated-go/store/task_run_log.pb.go@@ -373,6 +373,52 @@ func (x *TaskRunLog) GetReleaseFileExecute() *TaskRunLog_ReleaseFileExecute {return nil}+// PriorBackupDetail contains information about automatic backups created before migration.+type PriorBackupDetail struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // List of backup operations performed.+ Items []*PriorBackupDetail_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *PriorBackupDetail) Reset() {+ *x = PriorBackupDetail{}+ mi := &file_store_task_run_log_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *PriorBackupDetail) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PriorBackupDetail) ProtoMessage() {}++func (x *PriorBackupDetail) ProtoReflect() protoreflect.Message {+ mi := &file_store_task_run_log_proto_msgTypes[1]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use PriorBackupDetail.ProtoReflect.Descriptor instead.+func (*PriorBackupDetail) Descriptor() ([]byte, []int) {+ return file_store_task_run_log_proto_rawDescGZIP(), []int{1}+}++func (x *PriorBackupDetail) GetItems() []*PriorBackupDetail_Item {+ if x != nil {+ return x.Items+ }+ return nil+}+type TaskRunLog_SchemaDumpStart struct {state protoimpl.MessageState `protogen:"open.v1"`unknownFields protoimpl.UnknownFields@@ -381,7 +427,7 @@ type TaskRunLog_SchemaDumpStart struct {func (x *TaskRunLog_SchemaDumpStart) Reset() {*x = TaskRunLog_SchemaDumpStart{}- mi := &file_store_task_run_log_proto_msgTypes[1]+ mi := &file_store_task_run_log_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -393,7 +439,7 @@ func (x *TaskRunLog_SchemaDumpStart) String() string {func (*TaskRunLog_SchemaDumpStart) ProtoMessage() {}func (x *TaskRunLog_SchemaDumpStart) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[1]+ mi := &file_store_task_run_log_proto_msgTypes[2]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -418,7 +464,7 @@ type TaskRunLog_SchemaDumpEnd struct {func (x *TaskRunLog_SchemaDumpEnd) Reset() {*x = TaskRunLog_SchemaDumpEnd{}- mi := &file_store_task_run_log_proto_msgTypes[2]+ mi := &file_store_task_run_log_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -430,7 +476,7 @@ func (x *TaskRunLog_SchemaDumpEnd) String() string {func (*TaskRunLog_SchemaDumpEnd) ProtoMessage() {}func (x *TaskRunLog_SchemaDumpEnd) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[2]+ mi := &file_store_task_run_log_proto_msgTypes[3]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -467,7 +513,7 @@ type TaskRunLog_CommandExecute struct {func (x *TaskRunLog_CommandExecute) Reset() {*x = TaskRunLog_CommandExecute{}- mi := &file_store_task_run_log_proto_msgTypes[3]+ mi := &file_store_task_run_log_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -479,7 +525,7 @@ func (x *TaskRunLog_CommandExecute) String() string {func (*TaskRunLog_CommandExecute) ProtoMessage() {}func (x *TaskRunLog_CommandExecute) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[3]+ mi := &file_store_task_run_log_proto_msgTypes[4]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -522,7 +568,7 @@ type TaskRunLog_CommandResponse struct {func (x *TaskRunLog_CommandResponse) Reset() {*x = TaskRunLog_CommandResponse{}- mi := &file_store_task_run_log_proto_msgTypes[4]+ mi := &file_store_task_run_log_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -534,7 +580,7 @@ func (x *TaskRunLog_CommandResponse) String() string {func (*TaskRunLog_CommandResponse) ProtoMessage() {}func (x *TaskRunLog_CommandResponse) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[4]+ mi := &file_store_task_run_log_proto_msgTypes[5]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -579,7 +625,7 @@ type TaskRunLog_DatabaseSyncStart struct {func (x *TaskRunLog_DatabaseSyncStart) Reset() {*x = TaskRunLog_DatabaseSyncStart{}- mi := &file_store_task_run_log_proto_msgTypes[5]+ mi := &file_store_task_run_log_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -591,7 +637,7 @@ func (x *TaskRunLog_DatabaseSyncStart) String() string {func (*TaskRunLog_DatabaseSyncStart) ProtoMessage() {}func (x *TaskRunLog_DatabaseSyncStart) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[5]+ mi := &file_store_task_run_log_proto_msgTypes[6]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -616,7 +662,7 @@ type TaskRunLog_DatabaseSyncEnd struct {func (x *TaskRunLog_DatabaseSyncEnd) Reset() {*x = TaskRunLog_DatabaseSyncEnd{}- mi := &file_store_task_run_log_proto_msgTypes[6]+ mi := &file_store_task_run_log_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -628,7 +674,7 @@ func (x *TaskRunLog_DatabaseSyncEnd) String() string {func (*TaskRunLog_DatabaseSyncEnd) ProtoMessage() {}func (x *TaskRunLog_DatabaseSyncEnd) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[6]+ mi := &file_store_task_run_log_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -660,7 +706,7 @@ type TaskRunLog_TaskRunStatusUpdate struct {func (x *TaskRunLog_TaskRunStatusUpdate) Reset() {*x = TaskRunLog_TaskRunStatusUpdate{}- mi := &file_store_task_run_log_proto_msgTypes[7]+ mi := &file_store_task_run_log_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -672,7 +718,7 @@ func (x *TaskRunLog_TaskRunStatusUpdate) String() string {func (*TaskRunLog_TaskRunStatusUpdate) ProtoMessage() {}func (x *TaskRunLog_TaskRunStatusUpdate) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[7]+ mi := &file_store_task_run_log_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -705,7 +751,7 @@ type TaskRunLog_TransactionControl struct {func (x *TaskRunLog_TransactionControl) Reset() {*x = TaskRunLog_TransactionControl{}- mi := &file_store_task_run_log_proto_msgTypes[8]+ mi := &file_store_task_run_log_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -717,7 +763,7 @@ func (x *TaskRunLog_TransactionControl) String() string {func (*TaskRunLog_TransactionControl) ProtoMessage() {}func (x *TaskRunLog_TransactionControl) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[8]+ mi := &file_store_task_run_log_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -755,7 +801,7 @@ type TaskRunLog_PriorBackupStart struct {func (x *TaskRunLog_PriorBackupStart) Reset() {*x = TaskRunLog_PriorBackupStart{}- mi := &file_store_task_run_log_proto_msgTypes[9]+ mi := &file_store_task_run_log_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -767,7 +813,7 @@ func (x *TaskRunLog_PriorBackupStart) String() string {func (*TaskRunLog_PriorBackupStart) ProtoMessage() {}func (x *TaskRunLog_PriorBackupStart) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[9]+ mi := &file_store_task_run_log_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -793,7 +839,7 @@ type TaskRunLog_PriorBackupEnd struct {func (x *TaskRunLog_PriorBackupEnd) Reset() {*x = TaskRunLog_PriorBackupEnd{}- mi := &file_store_task_run_log_proto_msgTypes[10]+ mi := &file_store_task_run_log_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -805,7 +851,7 @@ func (x *TaskRunLog_PriorBackupEnd) String() string {func (*TaskRunLog_PriorBackupEnd) ProtoMessage() {}func (x *TaskRunLog_PriorBackupEnd) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[10]+ mi := &file_store_task_run_log_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -846,7 +892,7 @@ type TaskRunLog_RetryInfo struct {func (x *TaskRunLog_RetryInfo) Reset() {*x = TaskRunLog_RetryInfo{}- mi := &file_store_task_run_log_proto_msgTypes[11]+ mi := &file_store_task_run_log_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -858,7 +904,7 @@ func (x *TaskRunLog_RetryInfo) String() string {func (*TaskRunLog_RetryInfo) ProtoMessage() {}func (x *TaskRunLog_RetryInfo) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[11]+ mi := &file_store_task_run_log_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -903,7 +949,7 @@ type TaskRunLog_ComputeDiffStart struct {func (x *TaskRunLog_ComputeDiffStart) Reset() {*x = TaskRunLog_ComputeDiffStart{}- mi := &file_store_task_run_log_proto_msgTypes[12]+ mi := &file_store_task_run_log_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -915,7 +961,7 @@ func (x *TaskRunLog_ComputeDiffStart) String() string {func (*TaskRunLog_ComputeDiffStart) ProtoMessage() {}func (x *TaskRunLog_ComputeDiffStart) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[12]+ mi := &file_store_task_run_log_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -940,7 +986,7 @@ type TaskRunLog_ComputeDiffEnd struct {func (x *TaskRunLog_ComputeDiffEnd) Reset() {*x = TaskRunLog_ComputeDiffEnd{}- mi := &file_store_task_run_log_proto_msgTypes[13]+ mi := &file_store_task_run_log_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -952,7 +998,7 @@ func (x *TaskRunLog_ComputeDiffEnd) String() string {func (*TaskRunLog_ComputeDiffEnd) ProtoMessage() {}func (x *TaskRunLog_ComputeDiffEnd) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[13]+ mi := &file_store_task_run_log_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -987,7 +1033,7 @@ type TaskRunLog_ReleaseFileExecute struct {func (x *TaskRunLog_ReleaseFileExecute) Reset() {*x = TaskRunLog_ReleaseFileExecute{}- mi := &file_store_task_run_log_proto_msgTypes[14]+ mi := &file_store_task_run_log_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -999,7 +1045,7 @@ func (x *TaskRunLog_ReleaseFileExecute) String() string {func (*TaskRunLog_ReleaseFileExecute) ProtoMessage() {}func (x *TaskRunLog_ReleaseFileExecute) ProtoReflect() protoreflect.Message {- mi := &file_store_task_run_log_proto_msgTypes[14]+ mi := &file_store_task_run_log_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1029,11 +1075,149 @@ func (x *TaskRunLog_ReleaseFileExecute) GetFilePath() string {return ""}+// Item represents a single backup operation for a table.+type PriorBackupDetail_Item struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // The original table that was backed up.+ SourceTable *PriorBackupDetail_Item_Table `protobuf:"bytes,1,opt,name=source_table,json=sourceTable,proto3" json:"source_table,omitempty"`+ // The backup table where data was copied.+ TargetTable *PriorBackupDetail_Item_Table `protobuf:"bytes,2,opt,name=target_table,json=targetTable,proto3" json:"target_table,omitempty"`+ // Starting position in SQL for this backup operation.+ StartPosition *Position `protobuf:"bytes,3,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`+ // Ending position in SQL for this backup operation.+ EndPosition *Position `protobuf:"bytes,4,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *PriorBackupDetail_Item) Reset() {+ *x = PriorBackupDetail_Item{}+ mi := &file_store_task_run_log_proto_msgTypes[16]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *PriorBackupDetail_Item) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PriorBackupDetail_Item) ProtoMessage() {}++func (x *PriorBackupDetail_Item) ProtoReflect() protoreflect.Message {+ mi := &file_store_task_run_log_proto_msgTypes[16]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use PriorBackupDetail_Item.ProtoReflect.Descriptor instead.+func (*PriorBackupDetail_Item) Descriptor() ([]byte, []int) {+ return file_store_task_run_log_proto_rawDescGZIP(), []int{1, 0}+}++func (x *PriorBackupDetail_Item) GetSourceTable() *PriorBackupDetail_Item_Table {+ if x != nil {+ return x.SourceTable+ }+ return nil+}++func (x *PriorBackupDetail_Item) GetTargetTable() *PriorBackupDetail_Item_Table {+ if x != nil {+ return x.TargetTable+ }+ return nil+}++func (x *PriorBackupDetail_Item) GetStartPosition() *Position {+ if x != nil {+ return x.StartPosition+ }+ return nil+}++func (x *PriorBackupDetail_Item) GetEndPosition() *Position {+ if x != nil {+ return x.EndPosition+ }+ return nil+}++// Table identifies a database table.+type PriorBackupDetail_Item_Table struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // The database containing the table.+ // Format: instances/{instance}/databases/{database}+ Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`+ // Schema name (for databases that support schemas).+ Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`+ // Table name.+ Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *PriorBackupDetail_Item_Table) Reset() {+ *x = PriorBackupDetail_Item_Table{}+ mi := &file_store_task_run_log_proto_msgTypes[17]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *PriorBackupDetail_Item_Table) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PriorBackupDetail_Item_Table) ProtoMessage() {}++func (x *PriorBackupDetail_Item_Table) ProtoReflect() protoreflect.Message {+ mi := &file_store_task_run_log_proto_msgTypes[17]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use PriorBackupDetail_Item_Table.ProtoReflect.Descriptor instead.+func (*PriorBackupDetail_Item_Table) Descriptor() ([]byte, []int) {+ return file_store_task_run_log_proto_rawDescGZIP(), []int{1, 0, 0}+}++func (x *PriorBackupDetail_Item_Table) GetDatabase() string {+ if x != nil {+ return x.Database+ }+ return ""+}++func (x *PriorBackupDetail_Item_Table) GetSchema() string {+ if x != nil {+ return x.Schema+ }+ return ""+}++func (x *PriorBackupDetail_Item_Table) GetTable() string {+ if x != nil {+ return x.Table+ }+ return ""+}+var File_store_task_run_log_proto protoreflect.FileDescriptorconst file_store_task_run_log_proto_rawDesc = "" +"\n" +- "\x18store/task_run_log.proto\x12\x0ebytebase.store\x1a\x12store/common.proto\x1a\x14store/task_run.proto\"\xd4\x15\n" ++ "\x18store/task_run_log.proto\x12\x0ebytebase.store\x1a\x12store/common.proto\"\xd4\x15\n" +"\n" +"TaskRunLog\x123\n" +"\x04type\x18\x01 \x01(\x0e2\x1f.bytebase.store.TaskRunLog.TypeR\x04type\x12\x1b\n" +@@ -1114,7 +1298,18 @@ const file_store_task_run_log_proto_rawDesc = "" +"RETRY_INFO\x10\v\x12\x16\n" +"\x12COMPUTE_DIFF_START\x10\f\x12\x14\n" +"\x10COMPUTE_DIFF_END\x10\r\x12\x18\n" +- "\x14RELEASE_FILE_EXECUTE\x10\x0eB\x92\x01\n" ++ "\x14RELEASE_FILE_EXECUTE\x10\x0e\"\xcd\x03\n" ++ "\x11PriorBackupDetail\x12<\n" ++ "\x05items\x18\x01 \x03(\v2&.bytebase.store.PriorBackupDetail.ItemR\x05items\x1a\xf9\x02\n" ++ "\x04Item\x12O\n" ++ "\fsource_table\x18\x01 \x01(\v2,.bytebase.store.PriorBackupDetail.Item.TableR\vsourceTable\x12O\n" ++ "\ftarget_table\x18\x02 \x01(\v2,.bytebase.store.PriorBackupDetail.Item.TableR\vtargetTable\x12?\n" ++ "\x0estart_position\x18\x03 \x01(\v2\x18.bytebase.store.PositionR\rstartPosition\x12;\n" ++ "\fend_position\x18\x04 \x01(\v2\x18.bytebase.store.PositionR\vendPosition\x1aQ\n" ++ "\x05Table\x12\x1a\n" ++ "\bdatabase\x18\x01 \x01(\tR\bdatabase\x12\x16\n" ++ "\x06schema\x18\x02 \x01(\tR\x06schema\x12\x14\n" ++ "\x05table\x18\x03 \x01(\tR\x05tableB\x92\x01\n" +"\x12com.bytebase.storeB\x0fTaskRunLogProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"var (@@ -1130,54 +1325,62 @@ func file_store_task_run_log_proto_rawDescGZIP() []byte {}var file_store_task_run_log_proto_enumTypes = make([]protoimpl.EnumInfo, 3)-var file_store_task_run_log_proto_msgTypes = make([]protoimpl.MessageInfo, 15)+var file_store_task_run_log_proto_msgTypes = make([]protoimpl.MessageInfo, 18)var file_store_task_run_log_proto_goTypes = []any{(TaskRunLog_Type)(0), // 0: bytebase.store.TaskRunLog.Type(TaskRunLog_TaskRunStatusUpdate_Status)(0), // 1: bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status(TaskRunLog_TransactionControl_Type)(0), // 2: bytebase.store.TaskRunLog.TransactionControl.Type(*TaskRunLog)(nil), // 3: bytebase.store.TaskRunLog- (*TaskRunLog_SchemaDumpStart)(nil), // 4: bytebase.store.TaskRunLog.SchemaDumpStart- (*TaskRunLog_SchemaDumpEnd)(nil), // 5: bytebase.store.TaskRunLog.SchemaDumpEnd- (*TaskRunLog_CommandExecute)(nil), // 6: bytebase.store.TaskRunLog.CommandExecute- (*TaskRunLog_CommandResponse)(nil), // 7: bytebase.store.TaskRunLog.CommandResponse- (*TaskRunLog_DatabaseSyncStart)(nil), // 8: bytebase.store.TaskRunLog.DatabaseSyncStart- (*TaskRunLog_DatabaseSyncEnd)(nil), // 9: bytebase.store.TaskRunLog.DatabaseSyncEnd- (*TaskRunLog_TaskRunStatusUpdate)(nil), // 10: bytebase.store.TaskRunLog.TaskRunStatusUpdate- (*TaskRunLog_TransactionControl)(nil), // 11: bytebase.store.TaskRunLog.TransactionControl- (*TaskRunLog_PriorBackupStart)(nil), // 12: bytebase.store.TaskRunLog.PriorBackupStart- (*TaskRunLog_PriorBackupEnd)(nil), // 13: bytebase.store.TaskRunLog.PriorBackupEnd- (*TaskRunLog_RetryInfo)(nil), // 14: bytebase.store.TaskRunLog.RetryInfo- (*TaskRunLog_ComputeDiffStart)(nil), // 15: bytebase.store.TaskRunLog.ComputeDiffStart- (*TaskRunLog_ComputeDiffEnd)(nil), // 16: bytebase.store.TaskRunLog.ComputeDiffEnd- (*TaskRunLog_ReleaseFileExecute)(nil), // 17: bytebase.store.TaskRunLog.ReleaseFileExecute- (*Range)(nil), // 18: bytebase.store.Range- (*PriorBackupDetail)(nil), // 19: bytebase.store.PriorBackupDetail+ (*PriorBackupDetail)(nil), // 4: bytebase.store.PriorBackupDetail+ (*TaskRunLog_SchemaDumpStart)(nil), // 5: bytebase.store.TaskRunLog.SchemaDumpStart+ (*TaskRunLog_SchemaDumpEnd)(nil), // 6: bytebase.store.TaskRunLog.SchemaDumpEnd+ (*TaskRunLog_CommandExecute)(nil), // 7: bytebase.store.TaskRunLog.CommandExecute+ (*TaskRunLog_CommandResponse)(nil), // 8: bytebase.store.TaskRunLog.CommandResponse+ (*TaskRunLog_DatabaseSyncStart)(nil), // 9: bytebase.store.TaskRunLog.DatabaseSyncStart+ (*TaskRunLog_DatabaseSyncEnd)(nil), // 10: bytebase.store.TaskRunLog.DatabaseSyncEnd+ (*TaskRunLog_TaskRunStatusUpdate)(nil), // 11: bytebase.store.TaskRunLog.TaskRunStatusUpdate+ (*TaskRunLog_TransactionControl)(nil), // 12: bytebase.store.TaskRunLog.TransactionControl+ (*TaskRunLog_PriorBackupStart)(nil), // 13: bytebase.store.TaskRunLog.PriorBackupStart+ (*TaskRunLog_PriorBackupEnd)(nil), // 14: bytebase.store.TaskRunLog.PriorBackupEnd+ (*TaskRunLog_RetryInfo)(nil), // 15: bytebase.store.TaskRunLog.RetryInfo+ (*TaskRunLog_ComputeDiffStart)(nil), // 16: bytebase.store.TaskRunLog.ComputeDiffStart+ (*TaskRunLog_ComputeDiffEnd)(nil), // 17: bytebase.store.TaskRunLog.ComputeDiffEnd+ (*TaskRunLog_ReleaseFileExecute)(nil), // 18: bytebase.store.TaskRunLog.ReleaseFileExecute+ (*PriorBackupDetail_Item)(nil), // 19: bytebase.store.PriorBackupDetail.Item+ (*PriorBackupDetail_Item_Table)(nil), // 20: bytebase.store.PriorBackupDetail.Item.Table+ (*Range)(nil), // 21: bytebase.store.Range+ (*Position)(nil), // 22: bytebase.store.Position}var file_store_task_run_log_proto_depIdxs = []int32{0, // 0: bytebase.store.TaskRunLog.type:type_name -> bytebase.store.TaskRunLog.Type- 4, // 1: bytebase.store.TaskRunLog.schema_dump_start:type_name -> bytebase.store.TaskRunLog.SchemaDumpStart- 5, // 2: bytebase.store.TaskRunLog.schema_dump_end:type_name -> bytebase.store.TaskRunLog.SchemaDumpEnd- 6, // 3: bytebase.store.TaskRunLog.command_execute:type_name -> bytebase.store.TaskRunLog.CommandExecute- 7, // 4: bytebase.store.TaskRunLog.command_response:type_name -> bytebase.store.TaskRunLog.CommandResponse- 8, // 5: bytebase.store.TaskRunLog.database_sync_start:type_name -> bytebase.store.TaskRunLog.DatabaseSyncStart- 9, // 6: bytebase.store.TaskRunLog.database_sync_end:type_name -> bytebase.store.TaskRunLog.DatabaseSyncEnd- 10, // 7: bytebase.store.TaskRunLog.task_run_status_update:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate- 11, // 8: bytebase.store.TaskRunLog.transaction_control:type_name -> bytebase.store.TaskRunLog.TransactionControl- 12, // 9: bytebase.store.TaskRunLog.prior_backup_start:type_name -> bytebase.store.TaskRunLog.PriorBackupStart- 13, // 10: bytebase.store.TaskRunLog.prior_backup_end:type_name -> bytebase.store.TaskRunLog.PriorBackupEnd- 14, // 11: bytebase.store.TaskRunLog.retry_info:type_name -> bytebase.store.TaskRunLog.RetryInfo- 15, // 12: bytebase.store.TaskRunLog.compute_diff_start:type_name -> bytebase.store.TaskRunLog.ComputeDiffStart- 16, // 13: bytebase.store.TaskRunLog.compute_diff_end:type_name -> bytebase.store.TaskRunLog.ComputeDiffEnd- 17, // 14: bytebase.store.TaskRunLog.release_file_execute:type_name -> bytebase.store.TaskRunLog.ReleaseFileExecute- 18, // 15: bytebase.store.TaskRunLog.CommandExecute.range:type_name -> bytebase.store.Range- 1, // 16: bytebase.store.TaskRunLog.TaskRunStatusUpdate.status:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status- 2, // 17: bytebase.store.TaskRunLog.TransactionControl.type:type_name -> bytebase.store.TaskRunLog.TransactionControl.Type- 19, // 18: bytebase.store.TaskRunLog.PriorBackupEnd.prior_backup_detail:type_name -> bytebase.store.PriorBackupDetail- 19, // [19:19] is the sub-list for method output_type- 19, // [19:19] is the sub-list for method input_type- 19, // [19:19] is the sub-list for extension type_name- 19, // [19:19] is the sub-list for extension extendee- 0, // [0:19] is the sub-list for field type_name+ 5, // 1: bytebase.store.TaskRunLog.schema_dump_start:type_name -> bytebase.store.TaskRunLog.SchemaDumpStart+ 6, // 2: bytebase.store.TaskRunLog.schema_dump_end:type_name -> bytebase.store.TaskRunLog.SchemaDumpEnd+ 7, // 3: bytebase.store.TaskRunLog.command_execute:type_name -> bytebase.store.TaskRunLog.CommandExecute+ 8, // 4: bytebase.store.TaskRunLog.command_response:type_name -> bytebase.store.TaskRunLog.CommandResponse+ 9, // 5: bytebase.store.TaskRunLog.database_sync_start:type_name -> bytebase.store.TaskRunLog.DatabaseSyncStart+ 10, // 6: bytebase.store.TaskRunLog.database_sync_end:type_name -> bytebase.store.TaskRunLog.DatabaseSyncEnd+ 11, // 7: bytebase.store.TaskRunLog.task_run_status_update:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate+ 12, // 8: bytebase.store.TaskRunLog.transaction_control:type_name -> bytebase.store.TaskRunLog.TransactionControl+ 13, // 9: bytebase.store.TaskRunLog.prior_backup_start:type_name -> bytebase.store.TaskRunLog.PriorBackupStart+ 14, // 10: bytebase.store.TaskRunLog.prior_backup_end:type_name -> bytebase.store.TaskRunLog.PriorBackupEnd+ 15, // 11: bytebase.store.TaskRunLog.retry_info:type_name -> bytebase.store.TaskRunLog.RetryInfo+ 16, // 12: bytebase.store.TaskRunLog.compute_diff_start:type_name -> bytebase.store.TaskRunLog.ComputeDiffStart+ 17, // 13: bytebase.store.TaskRunLog.compute_diff_end:type_name -> bytebase.store.TaskRunLog.ComputeDiffEnd+ 18, // 14: bytebase.store.TaskRunLog.release_file_execute:type_name -> bytebase.store.TaskRunLog.ReleaseFileExecute+ 19, // 15: bytebase.store.PriorBackupDetail.items:type_name -> bytebase.store.PriorBackupDetail.Item+ 21, // 16: bytebase.store.TaskRunLog.CommandExecute.range:type_name -> bytebase.store.Range+ 1, // 17: bytebase.store.TaskRunLog.TaskRunStatusUpdate.status:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status+ 2, // 18: bytebase.store.TaskRunLog.TransactionControl.type:type_name -> bytebase.store.TaskRunLog.TransactionControl.Type+ 4, // 19: bytebase.store.TaskRunLog.PriorBackupEnd.prior_backup_detail:type_name -> bytebase.store.PriorBackupDetail+ 20, // 20: bytebase.store.PriorBackupDetail.Item.source_table:type_name -> bytebase.store.PriorBackupDetail.Item.Table+ 20, // 21: bytebase.store.PriorBackupDetail.Item.target_table:type_name -> bytebase.store.PriorBackupDetail.Item.Table+ 22, // 22: bytebase.store.PriorBackupDetail.Item.start_position:type_name -> bytebase.store.Position+ 22, // 23: bytebase.store.PriorBackupDetail.Item.end_position:type_name -> bytebase.store.Position+ 24, // [24:24] is the sub-list for method output_type+ 24, // [24:24] is the sub-list for method input_type+ 24, // [24:24] is the sub-list for extension type_name+ 24, // [24:24] is the sub-list for extension extendee+ 0, // [0:24] is the sub-list for field type_name}func init() { file_store_task_run_log_proto_init() }@@ -1186,14 +1389,13 @@ func file_store_task_run_log_proto_init() {return}file_store_common_proto_init()- file_store_task_run_proto_init()type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_task_run_log_proto_rawDesc), len(file_store_task_run_log_proto_rawDesc)),NumEnums: 3,- NumMessages: 15,+ NumMessages: 18,NumExtensions: 0,NumServices: 0,},diff --git a/backend/generated-go/store/task_run_log_equal.pb.go b/backend/generated-go/store/task_run_log_equal.pb.goindex 095b7d6b12..65809b1cde 100644--- a/backend/generated-go/store/task_run_log_equal.pb.go+++ b/backend/generated-go/store/task_run_log_equal.pb.go@@ -259,3 +259,62 @@ func (x *TaskRunLog) Equal(y *TaskRunLog) bool {}return true}++func (x *PriorBackupDetail_Item_Table) Equal(y *PriorBackupDetail_Item_Table) bool {+ if x == y {+ return true+ }+ if x == nil || y == nil {+ return x == nil && y == nil+ }+ if x.Database != y.Database {+ return false+ }+ if x.Schema != y.Schema {+ return false+ }+ if x.Table != y.Table {+ return false+ }+ return true+}++func (x *PriorBackupDetail_Item) Equal(y *PriorBackupDetail_Item) bool {+ if x == y {+ return true+ }+ if x == nil || y == nil {+ return x == nil && y == nil+ }+ if !x.SourceTable.Equal(y.SourceTable) {+ return false+ }+ if !x.TargetTable.Equal(y.TargetTable) {+ return false+ }+ if !x.StartPosition.Equal(y.StartPosition) {+ return false+ }+ if !x.EndPosition.Equal(y.EndPosition) {+ return false+ }+ return true+}++func (x *PriorBackupDetail) Equal(y *PriorBackupDetail) bool {+ if x == y {+ return true+ }+ if x == nil || y == nil {+ return x == nil && y == nil+ }+ if len(x.Items) != len(y.Items) {+ return false+ }+ for i := 0; i < len(x.Items); i++ {+ if !x.Items[i].Equal(y.Items[i]) {+ return false+ }+ }+ return true+}diff --git a/backend/generated-go/v1/rollout_service.pb.go b/backend/generated-go/v1/rollout_service.pb.goindex f69fb332db..ba007d9a06 100644--- a/backend/generated-go/v1/rollout_service.pb.go+++ b/backend/generated-go/v1/rollout_service.pb.go@@ -1543,8 +1543,10 @@ type TaskRun struct {StartTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`// The export archive status for data export tasks.ExportArchiveStatus TaskRun_ExportArchiveStatus `protobuf:"varint,10,opt,name=export_archive_status,json=exportArchiveStatus,proto3,enum=bytebase.v1.TaskRun_ExportArchiveStatus" json:"export_archive_status,omitempty"`- // The prior backup detail that will be used to rollback the task run.- PriorBackupDetail *TaskRun_PriorBackupDetail `protobuf:"bytes,11,opt,name=prior_backup_detail,json=priorBackupDetail,proto3" json:"prior_backup_detail,omitempty"`+ // Indicates whether a prior backup was created for this task run.+ // When true, rollback SQL can be generated via PreviewTaskRunRollback.+ // Backup details are available in the task run logs.+ HasPriorBackup bool `protobuf:"varint,11,opt,name=has_prior_backup,json=hasPriorBackup,proto3" json:"has_prior_backup,omitempty"`// Scheduling information about the task run.SchedulerInfo *TaskRun_SchedulerInfo `protobuf:"bytes,12,opt,name=scheduler_info,json=schedulerInfo,proto3" json:"scheduler_info,omitempty"`// The task run should run after run_time.@@ -1640,11 +1642,11 @@ func (x *TaskRun) GetExportArchiveStatus() TaskRun_ExportArchiveStatus {return TaskRun_EXPORT_ARCHIVE_STATUS_UNSPECIFIED}-func (x *TaskRun) GetPriorBackupDetail() *TaskRun_PriorBackupDetail {+func (x *TaskRun) GetHasPriorBackup() bool {if x != nil {- return x.PriorBackupDetail+ return x.HasPriorBackup}- return nil+ return false}func (x *TaskRun) GetSchedulerInfo() *TaskRun_SchedulerInfo {@@ -2345,52 +2347,6 @@ func (x *Task_DatabaseDataExport) GetPassword() string {return ""}-// Prior backup detail for rollback purposes.-type TaskRun_PriorBackupDetail struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The list of backed up tables.- Items []*TaskRun_PriorBackupDetail_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *TaskRun_PriorBackupDetail) Reset() {- *x = TaskRun_PriorBackupDetail{}- mi := &file_v1_rollout_service_proto_msgTypes[27]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *TaskRun_PriorBackupDetail) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TaskRun_PriorBackupDetail) ProtoMessage() {}--func (x *TaskRun_PriorBackupDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[27]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use TaskRun_PriorBackupDetail.ProtoReflect.Descriptor instead.-func (*TaskRun_PriorBackupDetail) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 0}-}--func (x *TaskRun_PriorBackupDetail) GetItems() []*TaskRun_PriorBackupDetail_Item {- if x != nil {- return x.Items- }- return nil-}-// Information about task run scheduling.type TaskRun_SchedulerInfo struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -2404,7 +2360,7 @@ type TaskRun_SchedulerInfo struct {func (x *TaskRun_SchedulerInfo) Reset() {*x = TaskRun_SchedulerInfo{}- mi := &file_v1_rollout_service_proto_msgTypes[28]+ mi := &file_v1_rollout_service_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2416,7 +2372,7 @@ func (x *TaskRun_SchedulerInfo) String() string {func (*TaskRun_SchedulerInfo) ProtoMessage() {}func (x *TaskRun_SchedulerInfo) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[28]+ mi := &file_v1_rollout_service_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2429,7 +2385,7 @@ func (x *TaskRun_SchedulerInfo) ProtoReflect() protoreflect.Message {// Deprecated: Use TaskRun_SchedulerInfo.ProtoReflect.Descriptor instead.func (*TaskRun_SchedulerInfo) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 1}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 0}}func (x *TaskRun_SchedulerInfo) GetReportTime() *timestamppb.Timestamp {@@ -2446,144 +2402,6 @@ func (x *TaskRun_SchedulerInfo) GetWaitingCause() *TaskRun_SchedulerInfo_Waitingreturn nil}-// A single backup table mapping.-type TaskRun_PriorBackupDetail_Item struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The original table information.- SourceTable *TaskRun_PriorBackupDetail_Item_Table `protobuf:"bytes,1,opt,name=source_table,json=sourceTable,proto3" json:"source_table,omitempty"`- // The target backup table information.- TargetTable *TaskRun_PriorBackupDetail_Item_Table `protobuf:"bytes,2,opt,name=target_table,json=targetTable,proto3" json:"target_table,omitempty"`- // The start position in the SQL statement.- StartPosition *Position `protobuf:"bytes,3,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`- // The end position in the SQL statement.- EndPosition *Position `protobuf:"bytes,4,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *TaskRun_PriorBackupDetail_Item) Reset() {- *x = TaskRun_PriorBackupDetail_Item{}- mi := &file_v1_rollout_service_proto_msgTypes[29]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *TaskRun_PriorBackupDetail_Item) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TaskRun_PriorBackupDetail_Item) ProtoMessage() {}--func (x *TaskRun_PriorBackupDetail_Item) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[29]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use TaskRun_PriorBackupDetail_Item.ProtoReflect.Descriptor instead.-func (*TaskRun_PriorBackupDetail_Item) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 0, 0}-}--func (x *TaskRun_PriorBackupDetail_Item) GetSourceTable() *TaskRun_PriorBackupDetail_Item_Table {- if x != nil {- return x.SourceTable- }- return nil-}--func (x *TaskRun_PriorBackupDetail_Item) GetTargetTable() *TaskRun_PriorBackupDetail_Item_Table {- if x != nil {- return x.TargetTable- }- return nil-}--func (x *TaskRun_PriorBackupDetail_Item) GetStartPosition() *Position {- if x != nil {- return x.StartPosition- }- return nil-}--func (x *TaskRun_PriorBackupDetail_Item) GetEndPosition() *Position {- if x != nil {- return x.EndPosition- }- return nil-}--// Table information.-type TaskRun_PriorBackupDetail_Item_Table struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The database information.- // Format: instances/{instance}/databases/{database}- Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`- // The schema name.- Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`- // The table name.- Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *TaskRun_PriorBackupDetail_Item_Table) Reset() {- *x = TaskRun_PriorBackupDetail_Item_Table{}- mi := &file_v1_rollout_service_proto_msgTypes[30]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *TaskRun_PriorBackupDetail_Item_Table) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TaskRun_PriorBackupDetail_Item_Table) ProtoMessage() {}--func (x *TaskRun_PriorBackupDetail_Item_Table) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[30]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use TaskRun_PriorBackupDetail_Item_Table.ProtoReflect.Descriptor instead.-func (*TaskRun_PriorBackupDetail_Item_Table) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 0, 0, 0}-}--func (x *TaskRun_PriorBackupDetail_Item_Table) GetDatabase() string {- if x != nil {- return x.Database- }- return ""-}--func (x *TaskRun_PriorBackupDetail_Item_Table) GetSchema() string {- if x != nil {- return x.Schema- }- return ""-}--func (x *TaskRun_PriorBackupDetail_Item_Table) GetTable() string {- if x != nil {- return x.Table- }- return ""-}-// Information about why a task run is waiting.type TaskRun_SchedulerInfo_WaitingCause struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -2599,7 +2417,7 @@ type TaskRun_SchedulerInfo_WaitingCause struct {func (x *TaskRun_SchedulerInfo_WaitingCause) Reset() {*x = TaskRun_SchedulerInfo_WaitingCause{}- mi := &file_v1_rollout_service_proto_msgTypes[31]+ mi := &file_v1_rollout_service_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2611,7 +2429,7 @@ func (x *TaskRun_SchedulerInfo_WaitingCause) String() string {func (*TaskRun_SchedulerInfo_WaitingCause) ProtoMessage() {}func (x *TaskRun_SchedulerInfo_WaitingCause) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[31]+ mi := &file_v1_rollout_service_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2624,7 +2442,7 @@ func (x *TaskRun_SchedulerInfo_WaitingCause) ProtoReflect() protoreflect.Message// Deprecated: Use TaskRun_SchedulerInfo_WaitingCause.ProtoReflect.Descriptor instead.func (*TaskRun_SchedulerInfo_WaitingCause) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 1, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 0, 0}}func (x *TaskRun_SchedulerInfo_WaitingCause) GetCause() isTaskRun_SchedulerInfo_WaitingCause_Cause {@@ -2670,7 +2488,7 @@ type TaskRunLogEntry_SchemaDump struct {func (x *TaskRunLogEntry_SchemaDump) Reset() {*x = TaskRunLogEntry_SchemaDump{}- mi := &file_v1_rollout_service_proto_msgTypes[32]+ mi := &file_v1_rollout_service_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2682,7 +2500,7 @@ func (x *TaskRunLogEntry_SchemaDump) String() string {func (*TaskRunLogEntry_SchemaDump) ProtoMessage() {}func (x *TaskRunLogEntry_SchemaDump) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[32]+ mi := &file_v1_rollout_service_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2738,7 +2556,7 @@ type TaskRunLogEntry_CommandExecute struct {func (x *TaskRunLogEntry_CommandExecute) Reset() {*x = TaskRunLogEntry_CommandExecute{}- mi := &file_v1_rollout_service_proto_msgTypes[33]+ mi := &file_v1_rollout_service_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2750,7 +2568,7 @@ func (x *TaskRunLogEntry_CommandExecute) String() string {func (*TaskRunLogEntry_CommandExecute) ProtoMessage() {}func (x *TaskRunLogEntry_CommandExecute) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[33]+ mi := &file_v1_rollout_service_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2809,7 +2627,7 @@ type TaskRunLogEntry_DatabaseSync struct {func (x *TaskRunLogEntry_DatabaseSync) Reset() {*x = TaskRunLogEntry_DatabaseSync{}- mi := &file_v1_rollout_service_proto_msgTypes[34]+ mi := &file_v1_rollout_service_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2821,7 +2639,7 @@ func (x *TaskRunLogEntry_DatabaseSync) String() string {func (*TaskRunLogEntry_DatabaseSync) ProtoMessage() {}func (x *TaskRunLogEntry_DatabaseSync) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[34]+ mi := &file_v1_rollout_service_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2869,7 +2687,7 @@ type TaskRunLogEntry_TaskRunStatusUpdate struct {func (x *TaskRunLogEntry_TaskRunStatusUpdate) Reset() {*x = TaskRunLogEntry_TaskRunStatusUpdate{}- mi := &file_v1_rollout_service_proto_msgTypes[35]+ mi := &file_v1_rollout_service_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2881,7 +2699,7 @@ func (x *TaskRunLogEntry_TaskRunStatusUpdate) String() string {func (*TaskRunLogEntry_TaskRunStatusUpdate) ProtoMessage() {}func (x *TaskRunLogEntry_TaskRunStatusUpdate) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[35]+ mi := &file_v1_rollout_service_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2917,7 +2735,7 @@ type TaskRunLogEntry_TransactionControl struct {func (x *TaskRunLogEntry_TransactionControl) Reset() {*x = TaskRunLogEntry_TransactionControl{}- mi := &file_v1_rollout_service_proto_msgTypes[36]+ mi := &file_v1_rollout_service_proto_msgTypes[33]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2929,7 +2747,7 @@ func (x *TaskRunLogEntry_TransactionControl) String() string {func (*TaskRunLogEntry_TransactionControl) ProtoMessage() {}func (x *TaskRunLogEntry_TransactionControl) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[36]+ mi := &file_v1_rollout_service_proto_msgTypes[33]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2967,7 +2785,7 @@ type TaskRunLogEntry_PriorBackup struct {// When the backup ended.EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`// The backup details.- PriorBackupDetail *TaskRun_PriorBackupDetail `protobuf:"bytes,3,opt,name=prior_backup_detail,json=priorBackupDetail,proto3" json:"prior_backup_detail,omitempty"`+ PriorBackupDetail *TaskRunLogEntry_PriorBackup_PriorBackupDetail `protobuf:"bytes,3,opt,name=prior_backup_detail,json=priorBackupDetail,proto3" json:"prior_backup_detail,omitempty"`// Error message if the backup failed.Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`unknownFields protoimpl.UnknownFields@@ -2976,7 +2794,7 @@ type TaskRunLogEntry_PriorBackup struct {func (x *TaskRunLogEntry_PriorBackup) Reset() {*x = TaskRunLogEntry_PriorBackup{}- mi := &file_v1_rollout_service_proto_msgTypes[37]+ mi := &file_v1_rollout_service_proto_msgTypes[34]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2988,7 +2806,7 @@ func (x *TaskRunLogEntry_PriorBackup) String() string {func (*TaskRunLogEntry_PriorBackup) ProtoMessage() {}func (x *TaskRunLogEntry_PriorBackup) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[37]+ mi := &file_v1_rollout_service_proto_msgTypes[34]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3018,7 +2836,7 @@ func (x *TaskRunLogEntry_PriorBackup) GetEndTime() *timestamppb.Timestamp {return nil}-func (x *TaskRunLogEntry_PriorBackup) GetPriorBackupDetail() *TaskRun_PriorBackupDetail {+func (x *TaskRunLogEntry_PriorBackup) GetPriorBackupDetail() *TaskRunLogEntry_PriorBackup_PriorBackupDetail {if x != nil {return x.PriorBackupDetail}@@ -3047,7 +2865,7 @@ type TaskRunLogEntry_RetryInfo struct {func (x *TaskRunLogEntry_RetryInfo) Reset() {*x = TaskRunLogEntry_RetryInfo{}- mi := &file_v1_rollout_service_proto_msgTypes[38]+ mi := &file_v1_rollout_service_proto_msgTypes[35]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3059,7 +2877,7 @@ func (x *TaskRunLogEntry_RetryInfo) String() string {func (*TaskRunLogEntry_RetryInfo) ProtoMessage() {}func (x *TaskRunLogEntry_RetryInfo) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[38]+ mi := &file_v1_rollout_service_proto_msgTypes[35]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3111,7 +2929,7 @@ type TaskRunLogEntry_ComputeDiff struct {func (x *TaskRunLogEntry_ComputeDiff) Reset() {*x = TaskRunLogEntry_ComputeDiff{}- mi := &file_v1_rollout_service_proto_msgTypes[39]+ mi := &file_v1_rollout_service_proto_msgTypes[36]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3123,7 +2941,7 @@ func (x *TaskRunLogEntry_ComputeDiff) String() string {func (*TaskRunLogEntry_ComputeDiff) ProtoMessage() {}func (x *TaskRunLogEntry_ComputeDiff) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[39]+ mi := &file_v1_rollout_service_proto_msgTypes[36]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3173,7 +2991,7 @@ type TaskRunLogEntry_ReleaseFileExecute struct {func (x *TaskRunLogEntry_ReleaseFileExecute) Reset() {*x = TaskRunLogEntry_ReleaseFileExecute{}- mi := &file_v1_rollout_service_proto_msgTypes[40]+ mi := &file_v1_rollout_service_proto_msgTypes[37]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3185,7 +3003,7 @@ func (x *TaskRunLogEntry_ReleaseFileExecute) String() string {func (*TaskRunLogEntry_ReleaseFileExecute) ProtoMessage() {}func (x *TaskRunLogEntry_ReleaseFileExecute) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[40]+ mi := &file_v1_rollout_service_proto_msgTypes[37]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3233,7 +3051,7 @@ type TaskRunLogEntry_CommandExecute_CommandResponse struct {func (x *TaskRunLogEntry_CommandExecute_CommandResponse) Reset() {*x = TaskRunLogEntry_CommandExecute_CommandResponse{}- mi := &file_v1_rollout_service_proto_msgTypes[41]+ mi := &file_v1_rollout_service_proto_msgTypes[38]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3245,7 +3063,7 @@ func (x *TaskRunLogEntry_CommandExecute_CommandResponse) String() string {func (*TaskRunLogEntry_CommandExecute_CommandResponse) ProtoMessage() {}func (x *TaskRunLogEntry_CommandExecute_CommandResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[41]+ mi := &file_v1_rollout_service_proto_msgTypes[38]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3289,6 +3107,190 @@ func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetAllAffectedRows() []return nil}+// Prior backup detail for rollback purposes.+type TaskRunLogEntry_PriorBackup_PriorBackupDetail struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // The list of backed up tables.+ Items []*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail) Reset() {+ *x = TaskRunLogEntry_PriorBackup_PriorBackupDetail{}+ mi := &file_v1_rollout_service_proto_msgTypes[39]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*TaskRunLogEntry_PriorBackup_PriorBackupDetail) ProtoMessage() {}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[39]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use TaskRunLogEntry_PriorBackup_PriorBackupDetail.ProtoReflect.Descriptor instead.+func (*TaskRunLogEntry_PriorBackup_PriorBackupDetail) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{19, 5, 0}+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail) GetItems() []*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item {+ if x != nil {+ return x.Items+ }+ return nil+}++// A single backup table mapping.+type TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // The original table information.+ SourceTable *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table `protobuf:"bytes,1,opt,name=source_table,json=sourceTable,proto3" json:"source_table,omitempty"`+ // The target backup table information.+ TargetTable *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table `protobuf:"bytes,2,opt,name=target_table,json=targetTable,proto3" json:"target_table,omitempty"`+ // The start position in the SQL statement.+ StartPosition *Position `protobuf:"bytes,3,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`+ // The end position in the SQL statement.+ EndPosition *Position `protobuf:"bytes,4,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) Reset() {+ *x = TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item{}+ mi := &file_v1_rollout_service_proto_msgTypes[40]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) ProtoMessage() {}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[40]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item.ProtoReflect.Descriptor instead.+func (*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{19, 5, 0, 0}+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) GetSourceTable() *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table {+ if x != nil {+ return x.SourceTable+ }+ return nil+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) GetTargetTable() *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table {+ if x != nil {+ return x.TargetTable+ }+ return nil+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) GetStartPosition() *Position {+ if x != nil {+ return x.StartPosition+ }+ return nil+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) GetEndPosition() *Position {+ if x != nil {+ return x.EndPosition+ }+ return nil+}++// Table information.+type TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // The database information.+ // Format: instances/{instance}/databases/{database}+ Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`+ // The schema name.+ Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`+ // The table name.+ Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) Reset() {+ *x = TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table{}+ mi := &file_v1_rollout_service_proto_msgTypes[41]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) ProtoMessage() {}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[41]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table.ProtoReflect.Descriptor instead.+func (*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{19, 5, 0, 0, 0}+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) GetDatabase() string {+ if x != nil {+ return x.Database+ }+ return ""+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) GetSchema() string {+ if x != nil {+ return x.Schema+ }+ return ""+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) GetTable() string {+ if x != nil {+ return x.Table+ }+ return ""+}+// PostgreSQL session information.type TaskRunSession_Postgres struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -3635,7 +3637,7 @@ const file_v1_rollout_service_proto_rawDesc = "" +"\x11bytebase.com/Task\x12Cprojects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}B\t\n" +"\apayloadB\x0e\n" +"\f_update_timeB\v\n" +- "\t_run_time\"\xa0\r\n" ++ "\t_run_time\"\x99\t\n" +"\aTaskRun\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +"\acreator\x18\x02 \x01(\tR\acreator\x12@\n" +@@ -3648,21 +3650,10 @@ const file_v1_rollout_service_proto_rawDesc = "" +"\n" +"start_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\tstartTime\x12\\\n" +"\x15export_archive_status\x18\n" +- " \x01(\x0e2(.bytebase.v1.TaskRun.ExportArchiveStatusR\x13exportArchiveStatus\x12V\n" +- "\x13prior_backup_detail\x18\v \x01(\v2&.bytebase.v1.TaskRun.PriorBackupDetailR\x11priorBackupDetail\x12N\n" ++ " \x01(\x0e2(.bytebase.v1.TaskRun.ExportArchiveStatusR\x13exportArchiveStatus\x12(\n" ++ "\x10has_prior_backup\x18\v \x01(\bR\x0ehasPriorBackup\x12N\n" +"\x0escheduler_info\x18\f \x01(\v2\".bytebase.v1.TaskRun.SchedulerInfoB\x03\xe0A\x03R\rschedulerInfo\x12?\n" +- "\brun_time\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03H\x00R\arunTime\x88\x01\x01\x1a\xd6\x03\n" +- "\x11PriorBackupDetail\x12A\n" +- "\x05items\x18\x01 \x03(\v2+.bytebase.v1.TaskRun.PriorBackupDetail.ItemR\x05items\x1a\xfd\x02\n" +- "\x04Item\x12T\n" +- "\fsource_table\x18\x01 \x01(\v21.bytebase.v1.TaskRun.PriorBackupDetail.Item.TableR\vsourceTable\x12T\n" +- "\ftarget_table\x18\x02 \x01(\v21.bytebase.v1.TaskRun.PriorBackupDetail.Item.TableR\vtargetTable\x12<\n" +- "\x0estart_position\x18\x03 \x01(\v2\x15.bytebase.v1.PositionR\rstartPosition\x128\n" +- "\fend_position\x18\x04 \x01(\v2\x15.bytebase.v1.PositionR\vendPosition\x1aQ\n" +- "\x05Table\x12\x1a\n" +- "\bdatabase\x18\x01 \x01(\tR\bdatabase\x12\x16\n" +- "\x06schema\x18\x02 \x01(\tR\x06schema\x12\x14\n" +- "\x05table\x18\x03 \x01(\tR\x05table\x1a\xef\x01\n" ++ "\brun_time\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03H\x00R\arunTime\x88\x01\x01\x1a\xef\x01\n" +"\rSchedulerInfo\x12;\n" +"\vreport_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\n" +"reportTime\x12T\n" +@@ -3689,7 +3680,7 @@ const file_v1_rollout_service_proto_rawDesc = "" +"TaskRunLog\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x126\n" +"\aentries\x18\x02 \x03(\v2\x1c.bytebase.v1.TaskRunLogEntryR\aentries:x\xeaAu\n" +- "\x17bytebase.com/TaskRunLog\x12Zprojects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log\"\xf2\x15\n" ++ "\x17bytebase.com/TaskRunLog\x12Zprojects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log\"\x9b\x1a\n" +"\x0fTaskRunLogEntry\x125\n" +"\x04type\x18\x01 \x01(\x0e2!.bytebase.v1.TaskRunLogEntry.TypeR\x04type\x125\n" +"\blog_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\alogTime\x12\x1b\n" +@@ -3741,13 +3732,24 @@ const file_v1_rollout_service_proto_rawDesc = "" +"\x05BEGIN\x10\x01\x12\n" +"\n" +"\x06COMMIT\x10\x02\x12\f\n" +- "\bROLLBACK\x10\x03\x1a\xed\x01\n" ++ "\bROLLBACK\x10\x03\x1a\x96\x06\n" +"\vPriorBackup\x129\n" +"\n" +"start_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" +- "\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x12V\n" +- "\x13prior_backup_detail\x18\x03 \x01(\v2&.bytebase.v1.TaskRun.PriorBackupDetailR\x11priorBackupDetail\x12\x14\n" +- "\x05error\x18\x04 \x01(\tR\x05error\x1ak\n" ++ "\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x12j\n" ++ "\x13prior_backup_detail\x18\x03 \x01(\v2:.bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetailR\x11priorBackupDetail\x12\x14\n" ++ "\x05error\x18\x04 \x01(\tR\x05error\x1a\x92\x04\n" ++ "\x11PriorBackupDetail\x12U\n" ++ "\x05items\x18\x01 \x03(\v2?.bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.ItemR\x05items\x1a\xa5\x03\n" ++ "\x04Item\x12h\n" ++ "\fsource_table\x18\x01 \x01(\v2E.bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.TableR\vsourceTable\x12h\n" ++ "\ftarget_table\x18\x02 \x01(\v2E.bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.TableR\vtargetTable\x12<\n" ++ "\x0estart_position\x18\x03 \x01(\v2\x15.bytebase.v1.PositionR\rstartPosition\x128\n" ++ "\fend_position\x18\x04 \x01(\v2\x15.bytebase.v1.PositionR\vendPosition\x1aQ\n" ++ "\x05Table\x12\x1a\n" ++ "\bdatabase\x18\x01 \x01(\tR\bdatabase\x12\x16\n" ++ "\x06schema\x18\x02 \x01(\tR\x06schema\x12\x14\n" ++ "\x05table\x18\x03 \x01(\tR\x05table\x1ak\n" +"\tRetryInfo\x12\x14\n" +"\x05error\x18\x01 \x01(\tR\x05error\x12\x1f\n" +"\vretry_count\x18\x02 \x01(\x05R\n" +@@ -3853,61 +3855,61 @@ func file_v1_rollout_service_proto_rawDescGZIP() []byte {var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 7)var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 44)var file_v1_rollout_service_proto_goTypes = []any{- (Task_Status)(0), // 0: bytebase.v1.Task.Status- (Task_Type)(0), // 1: bytebase.v1.Task.Type- (TaskRun_Status)(0), // 2: bytebase.v1.TaskRun.Status- (TaskRun_ExportArchiveStatus)(0), // 3: bytebase.v1.TaskRun.ExportArchiveStatus- (TaskRunLogEntry_Type)(0), // 4: bytebase.v1.TaskRunLogEntry.Type- (TaskRunLogEntry_TaskRunStatusUpdate_Status)(0), // 5: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status- (TaskRunLogEntry_TransactionControl_Type)(0), // 6: bytebase.v1.TaskRunLogEntry.TransactionControl.Type- (*BatchRunTasksRequest)(nil), // 7: bytebase.v1.BatchRunTasksRequest- (*BatchRunTasksResponse)(nil), // 8: bytebase.v1.BatchRunTasksResponse- (*BatchSkipTasksRequest)(nil), // 9: bytebase.v1.BatchSkipTasksRequest- (*BatchSkipTasksResponse)(nil), // 10: bytebase.v1.BatchSkipTasksResponse- (*BatchCancelTaskRunsRequest)(nil), // 11: bytebase.v1.BatchCancelTaskRunsRequest- (*BatchCancelTaskRunsResponse)(nil), // 12: bytebase.v1.BatchCancelTaskRunsResponse- (*GetRolloutRequest)(nil), // 13: bytebase.v1.GetRolloutRequest- (*ListRolloutsRequest)(nil), // 14: bytebase.v1.ListRolloutsRequest- (*ListRolloutsResponse)(nil), // 15: bytebase.v1.ListRolloutsResponse- (*CreateRolloutRequest)(nil), // 16: bytebase.v1.CreateRolloutRequest- (*ListTaskRunsRequest)(nil), // 17: bytebase.v1.ListTaskRunsRequest- (*ListTaskRunsResponse)(nil), // 18: bytebase.v1.ListTaskRunsResponse- (*GetTaskRunRequest)(nil), // 19: bytebase.v1.GetTaskRunRequest- (*GetTaskRunLogRequest)(nil), // 20: bytebase.v1.GetTaskRunLogRequest- (*Rollout)(nil), // 21: bytebase.v1.Rollout- (*Stage)(nil), // 22: bytebase.v1.Stage- (*Task)(nil), // 23: bytebase.v1.Task- (*TaskRun)(nil), // 24: bytebase.v1.TaskRun- (*TaskRunLog)(nil), // 25: bytebase.v1.TaskRunLog- (*TaskRunLogEntry)(nil), // 26: bytebase.v1.TaskRunLogEntry- (*GetTaskRunSessionRequest)(nil), // 27: bytebase.v1.GetTaskRunSessionRequest- (*TaskRunSession)(nil), // 28: bytebase.v1.TaskRunSession- (*PreviewTaskRunRollbackRequest)(nil), // 29: bytebase.v1.PreviewTaskRunRollbackRequest- (*PreviewTaskRunRollbackResponse)(nil), // 30: bytebase.v1.PreviewTaskRunRollbackResponse- (*Task_DatabaseCreate)(nil), // 31: bytebase.v1.Task.DatabaseCreate- (*Task_DatabaseUpdate)(nil), // 32: bytebase.v1.Task.DatabaseUpdate- (*Task_DatabaseDataExport)(nil), // 33: bytebase.v1.Task.DatabaseDataExport- (*TaskRun_PriorBackupDetail)(nil), // 34: bytebase.v1.TaskRun.PriorBackupDetail- (*TaskRun_SchedulerInfo)(nil), // 35: bytebase.v1.TaskRun.SchedulerInfo- (*TaskRun_PriorBackupDetail_Item)(nil), // 36: bytebase.v1.TaskRun.PriorBackupDetail.Item- (*TaskRun_PriorBackupDetail_Item_Table)(nil), // 37: bytebase.v1.TaskRun.PriorBackupDetail.Item.Table- (*TaskRun_SchedulerInfo_WaitingCause)(nil), // 38: bytebase.v1.TaskRun.SchedulerInfo.WaitingCause- (*TaskRunLogEntry_SchemaDump)(nil), // 39: bytebase.v1.TaskRunLogEntry.SchemaDump- (*TaskRunLogEntry_CommandExecute)(nil), // 40: bytebase.v1.TaskRunLogEntry.CommandExecute- (*TaskRunLogEntry_DatabaseSync)(nil), // 41: bytebase.v1.TaskRunLogEntry.DatabaseSync- (*TaskRunLogEntry_TaskRunStatusUpdate)(nil), // 42: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate- (*TaskRunLogEntry_TransactionControl)(nil), // 43: bytebase.v1.TaskRunLogEntry.TransactionControl- (*TaskRunLogEntry_PriorBackup)(nil), // 44: bytebase.v1.TaskRunLogEntry.PriorBackup- (*TaskRunLogEntry_RetryInfo)(nil), // 45: bytebase.v1.TaskRunLogEntry.RetryInfo- (*TaskRunLogEntry_ComputeDiff)(nil), // 46: bytebase.v1.TaskRunLogEntry.ComputeDiff- (*TaskRunLogEntry_ReleaseFileExecute)(nil), // 47: bytebase.v1.TaskRunLogEntry.ReleaseFileExecute- (*TaskRunLogEntry_CommandExecute_CommandResponse)(nil), // 48: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse- (*TaskRunSession_Postgres)(nil), // 49: bytebase.v1.TaskRunSession.Postgres- (*TaskRunSession_Postgres_Session)(nil), // 50: bytebase.v1.TaskRunSession.Postgres.Session- (*timestamppb.Timestamp)(nil), // 51: google.protobuf.Timestamp- (ExportFormat)(0), // 52: bytebase.v1.ExportFormat- (*Position)(nil), // 53: bytebase.v1.Position- (*Range)(nil), // 54: bytebase.v1.Range+ (Task_Status)(0), // 0: bytebase.v1.Task.Status+ (Task_Type)(0), // 1: bytebase.v1.Task.Type+ (TaskRun_Status)(0), // 2: bytebase.v1.TaskRun.Status+ (TaskRun_ExportArchiveStatus)(0), // 3: bytebase.v1.TaskRun.ExportArchiveStatus+ (TaskRunLogEntry_Type)(0), // 4: bytebase.v1.TaskRunLogEntry.Type+ (TaskRunLogEntry_TaskRunStatusUpdate_Status)(0), // 5: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status+ (TaskRunLogEntry_TransactionControl_Type)(0), // 6: bytebase.v1.TaskRunLogEntry.TransactionControl.Type+ (*BatchRunTasksRequest)(nil), // 7: bytebase.v1.BatchRunTasksRequest+ (*BatchRunTasksResponse)(nil), // 8: bytebase.v1.BatchRunTasksResponse+ (*BatchSkipTasksRequest)(nil), // 9: bytebase.v1.BatchSkipTasksRequest+ (*BatchSkipTasksResponse)(nil), // 10: bytebase.v1.BatchSkipTasksResponse+ (*BatchCancelTaskRunsRequest)(nil), // 11: bytebase.v1.BatchCancelTaskRunsRequest+ (*BatchCancelTaskRunsResponse)(nil), // 12: bytebase.v1.BatchCancelTaskRunsResponse+ (*GetRolloutRequest)(nil), // 13: bytebase.v1.GetRolloutRequest+ (*ListRolloutsRequest)(nil), // 14: bytebase.v1.ListRolloutsRequest+ (*ListRolloutsResponse)(nil), // 15: bytebase.v1.ListRolloutsResponse+ (*CreateRolloutRequest)(nil), // 16: bytebase.v1.CreateRolloutRequest+ (*ListTaskRunsRequest)(nil), // 17: bytebase.v1.ListTaskRunsRequest+ (*ListTaskRunsResponse)(nil), // 18: bytebase.v1.ListTaskRunsResponse+ (*GetTaskRunRequest)(nil), // 19: bytebase.v1.GetTaskRunRequest+ (*GetTaskRunLogRequest)(nil), // 20: bytebase.v1.GetTaskRunLogRequest+ (*Rollout)(nil), // 21: bytebase.v1.Rollout+ (*Stage)(nil), // 22: bytebase.v1.Stage+ (*Task)(nil), // 23: bytebase.v1.Task+ (*TaskRun)(nil), // 24: bytebase.v1.TaskRun+ (*TaskRunLog)(nil), // 25: bytebase.v1.TaskRunLog+ (*TaskRunLogEntry)(nil), // 26: bytebase.v1.TaskRunLogEntry+ (*GetTaskRunSessionRequest)(nil), // 27: bytebase.v1.GetTaskRunSessionRequest+ (*TaskRunSession)(nil), // 28: bytebase.v1.TaskRunSession+ (*PreviewTaskRunRollbackRequest)(nil), // 29: bytebase.v1.PreviewTaskRunRollbackRequest+ (*PreviewTaskRunRollbackResponse)(nil), // 30: bytebase.v1.PreviewTaskRunRollbackResponse+ (*Task_DatabaseCreate)(nil), // 31: bytebase.v1.Task.DatabaseCreate+ (*Task_DatabaseUpdate)(nil), // 32: bytebase.v1.Task.DatabaseUpdate+ (*Task_DatabaseDataExport)(nil), // 33: bytebase.v1.Task.DatabaseDataExport+ (*TaskRun_SchedulerInfo)(nil), // 34: bytebase.v1.TaskRun.SchedulerInfo+ (*TaskRun_SchedulerInfo_WaitingCause)(nil), // 35: bytebase.v1.TaskRun.SchedulerInfo.WaitingCause+ (*TaskRunLogEntry_SchemaDump)(nil), // 36: bytebase.v1.TaskRunLogEntry.SchemaDump+ (*TaskRunLogEntry_CommandExecute)(nil), // 37: bytebase.v1.TaskRunLogEntry.CommandExecute+ (*TaskRunLogEntry_DatabaseSync)(nil), // 38: bytebase.v1.TaskRunLogEntry.DatabaseSync+ (*TaskRunLogEntry_TaskRunStatusUpdate)(nil), // 39: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate+ (*TaskRunLogEntry_TransactionControl)(nil), // 40: bytebase.v1.TaskRunLogEntry.TransactionControl+ (*TaskRunLogEntry_PriorBackup)(nil), // 41: bytebase.v1.TaskRunLogEntry.PriorBackup+ (*TaskRunLogEntry_RetryInfo)(nil), // 42: bytebase.v1.TaskRunLogEntry.RetryInfo+ (*TaskRunLogEntry_ComputeDiff)(nil), // 43: bytebase.v1.TaskRunLogEntry.ComputeDiff+ (*TaskRunLogEntry_ReleaseFileExecute)(nil), // 44: bytebase.v1.TaskRunLogEntry.ReleaseFileExecute+ (*TaskRunLogEntry_CommandExecute_CommandResponse)(nil), // 45: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse+ (*TaskRunLogEntry_PriorBackup_PriorBackupDetail)(nil), // 46: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail+ (*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item)(nil), // 47: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item+ (*TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table)(nil), // 48: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table+ (*TaskRunSession_Postgres)(nil), // 49: bytebase.v1.TaskRunSession.Postgres+ (*TaskRunSession_Postgres_Session)(nil), // 50: bytebase.v1.TaskRunSession.Postgres.Session+ (*timestamppb.Timestamp)(nil), // 51: google.protobuf.Timestamp+ (ExportFormat)(0), // 52: bytebase.v1.ExportFormat+ (*Range)(nil), // 53: bytebase.v1.Range+ (*Position)(nil), // 54: bytebase.v1.Position}var file_v1_rollout_service_proto_depIdxs = []int32{51, // 0: bytebase.v1.BatchRunTasksRequest.run_time:type_name -> google.protobuf.Timestamp@@ -3929,78 +3931,77 @@ var file_v1_rollout_service_proto_depIdxs = []int32{2, // 16: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status51, // 17: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp3, // 18: bytebase.v1.TaskRun.export_archive_status:type_name -> bytebase.v1.TaskRun.ExportArchiveStatus- 34, // 19: bytebase.v1.TaskRun.prior_backup_detail:type_name -> bytebase.v1.TaskRun.PriorBackupDetail- 35, // 20: bytebase.v1.TaskRun.scheduler_info:type_name -> bytebase.v1.TaskRun.SchedulerInfo- 51, // 21: bytebase.v1.TaskRun.run_time:type_name -> google.protobuf.Timestamp- 26, // 22: bytebase.v1.TaskRunLog.entries:type_name -> bytebase.v1.TaskRunLogEntry- 4, // 23: bytebase.v1.TaskRunLogEntry.type:type_name -> bytebase.v1.TaskRunLogEntry.Type- 51, // 24: bytebase.v1.TaskRunLogEntry.log_time:type_name -> google.protobuf.Timestamp- 39, // 25: bytebase.v1.TaskRunLogEntry.schema_dump:type_name -> bytebase.v1.TaskRunLogEntry.SchemaDump- 40, // 26: bytebase.v1.TaskRunLogEntry.command_execute:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute- 41, // 27: bytebase.v1.TaskRunLogEntry.database_sync:type_name -> bytebase.v1.TaskRunLogEntry.DatabaseSync- 42, // 28: bytebase.v1.TaskRunLogEntry.task_run_status_update:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate- 43, // 29: bytebase.v1.TaskRunLogEntry.transaction_control:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl- 44, // 30: bytebase.v1.TaskRunLogEntry.prior_backup:type_name -> bytebase.v1.TaskRunLogEntry.PriorBackup- 45, // 31: bytebase.v1.TaskRunLogEntry.retry_info:type_name -> bytebase.v1.TaskRunLogEntry.RetryInfo- 46, // 32: bytebase.v1.TaskRunLogEntry.compute_diff:type_name -> bytebase.v1.TaskRunLogEntry.ComputeDiff- 47, // 33: bytebase.v1.TaskRunLogEntry.release_file_execute:type_name -> bytebase.v1.TaskRunLogEntry.ReleaseFileExecute- 49, // 34: bytebase.v1.TaskRunSession.postgres:type_name -> bytebase.v1.TaskRunSession.Postgres- 52, // 35: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat- 36, // 36: bytebase.v1.TaskRun.PriorBackupDetail.items:type_name -> bytebase.v1.TaskRun.PriorBackupDetail.Item- 51, // 37: bytebase.v1.TaskRun.SchedulerInfo.report_time:type_name -> google.protobuf.Timestamp- 38, // 38: bytebase.v1.TaskRun.SchedulerInfo.waiting_cause:type_name -> bytebase.v1.TaskRun.SchedulerInfo.WaitingCause- 37, // 39: bytebase.v1.TaskRun.PriorBackupDetail.Item.source_table:type_name -> bytebase.v1.TaskRun.PriorBackupDetail.Item.Table- 37, // 40: bytebase.v1.TaskRun.PriorBackupDetail.Item.target_table:type_name -> bytebase.v1.TaskRun.PriorBackupDetail.Item.Table- 53, // 41: bytebase.v1.TaskRun.PriorBackupDetail.Item.start_position:type_name -> bytebase.v1.Position- 53, // 42: bytebase.v1.TaskRun.PriorBackupDetail.Item.end_position:type_name -> bytebase.v1.Position- 51, // 43: bytebase.v1.TaskRunLogEntry.SchemaDump.start_time:type_name -> google.protobuf.Timestamp- 51, // 44: bytebase.v1.TaskRunLogEntry.SchemaDump.end_time:type_name -> google.protobuf.Timestamp- 51, // 45: bytebase.v1.TaskRunLogEntry.CommandExecute.log_time:type_name -> google.protobuf.Timestamp- 54, // 46: bytebase.v1.TaskRunLogEntry.CommandExecute.range:type_name -> bytebase.v1.Range- 48, // 47: bytebase.v1.TaskRunLogEntry.CommandExecute.response:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse- 51, // 48: bytebase.v1.TaskRunLogEntry.DatabaseSync.start_time:type_name -> google.protobuf.Timestamp- 51, // 49: bytebase.v1.TaskRunLogEntry.DatabaseSync.end_time:type_name -> google.protobuf.Timestamp- 5, // 50: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.status:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status- 6, // 51: bytebase.v1.TaskRunLogEntry.TransactionControl.type:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl.Type- 51, // 52: bytebase.v1.TaskRunLogEntry.PriorBackup.start_time:type_name -> google.protobuf.Timestamp- 51, // 53: bytebase.v1.TaskRunLogEntry.PriorBackup.end_time:type_name -> google.protobuf.Timestamp- 34, // 54: bytebase.v1.TaskRunLogEntry.PriorBackup.prior_backup_detail:type_name -> bytebase.v1.TaskRun.PriorBackupDetail- 51, // 55: bytebase.v1.TaskRunLogEntry.ComputeDiff.start_time:type_name -> google.protobuf.Timestamp- 51, // 56: bytebase.v1.TaskRunLogEntry.ComputeDiff.end_time:type_name -> google.protobuf.Timestamp- 51, // 57: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.log_time:type_name -> google.protobuf.Timestamp- 50, // 58: bytebase.v1.TaskRunSession.Postgres.session:type_name -> bytebase.v1.TaskRunSession.Postgres.Session- 50, // 59: bytebase.v1.TaskRunSession.Postgres.blocking_sessions:type_name -> bytebase.v1.TaskRunSession.Postgres.Session- 50, // 60: bytebase.v1.TaskRunSession.Postgres.blocked_sessions:type_name -> bytebase.v1.TaskRunSession.Postgres.Session- 51, // 61: bytebase.v1.TaskRunSession.Postgres.Session.backend_start:type_name -> google.protobuf.Timestamp- 51, // 62: bytebase.v1.TaskRunSession.Postgres.Session.xact_start:type_name -> google.protobuf.Timestamp- 51, // 63: bytebase.v1.TaskRunSession.Postgres.Session.query_start:type_name -> google.protobuf.Timestamp- 13, // 64: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest- 14, // 65: bytebase.v1.RolloutService.ListRollouts:input_type -> bytebase.v1.ListRolloutsRequest- 16, // 66: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest- 17, // 67: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest- 19, // 68: bytebase.v1.RolloutService.GetTaskRun:input_type -> bytebase.v1.GetTaskRunRequest- 20, // 69: bytebase.v1.RolloutService.GetTaskRunLog:input_type -> bytebase.v1.GetTaskRunLogRequest- 27, // 70: bytebase.v1.RolloutService.GetTaskRunSession:input_type -> bytebase.v1.GetTaskRunSessionRequest- 7, // 71: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest- 9, // 72: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest- 11, // 73: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest- 29, // 74: bytebase.v1.RolloutService.PreviewTaskRunRollback:input_type -> bytebase.v1.PreviewTaskRunRollbackRequest- 21, // 75: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout- 15, // 76: bytebase.v1.RolloutService.ListRollouts:output_type -> bytebase.v1.ListRolloutsResponse- 21, // 77: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout- 18, // 78: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse- 24, // 79: bytebase.v1.RolloutService.GetTaskRun:output_type -> bytebase.v1.TaskRun- 25, // 80: bytebase.v1.RolloutService.GetTaskRunLog:output_type -> bytebase.v1.TaskRunLog- 28, // 81: bytebase.v1.RolloutService.GetTaskRunSession:output_type -> bytebase.v1.TaskRunSession- 8, // 82: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse- 10, // 83: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse- 12, // 84: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse- 30, // 85: bytebase.v1.RolloutService.PreviewTaskRunRollback:output_type -> bytebase.v1.PreviewTaskRunRollbackResponse- 75, // [75:86] is the sub-list for method output_type- 64, // [64:75] is the sub-list for method input_type- 64, // [64:64] is the sub-list for extension type_name- 64, // [64:64] is the sub-list for extension extendee- 0, // [0:64] is the sub-list for field type_name+ 34, // 19: bytebase.v1.TaskRun.scheduler_info:type_name -> bytebase.v1.TaskRun.SchedulerInfo+ 51, // 20: bytebase.v1.TaskRun.run_time:type_name -> google.protobuf.Timestamp+ 26, // 21: bytebase.v1.TaskRunLog.entries:type_name -> bytebase.v1.TaskRunLogEntry+ 4, // 22: bytebase.v1.TaskRunLogEntry.type:type_name -> bytebase.v1.TaskRunLogEntry.Type+ 51, // 23: bytebase.v1.TaskRunLogEntry.log_time:type_name -> google.protobuf.Timestamp+ 36, // 24: bytebase.v1.TaskRunLogEntry.schema_dump:type_name -> bytebase.v1.TaskRunLogEntry.SchemaDump+ 37, // 25: bytebase.v1.TaskRunLogEntry.command_execute:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute+ 38, // 26: bytebase.v1.TaskRunLogEntry.database_sync:type_name -> bytebase.v1.TaskRunLogEntry.DatabaseSync+ 39, // 27: bytebase.v1.TaskRunLogEntry.task_run_status_update:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate+ 40, // 28: bytebase.v1.TaskRunLogEntry.transaction_control:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl+ 41, // 29: bytebase.v1.TaskRunLogEntry.prior_backup:type_name -> bytebase.v1.TaskRunLogEntry.PriorBackup+ 42, // 30: bytebase.v1.TaskRunLogEntry.retry_info:type_name -> bytebase.v1.TaskRunLogEntry.RetryInfo+ 43, // 31: bytebase.v1.TaskRunLogEntry.compute_diff:type_name -> bytebase.v1.TaskRunLogEntry.ComputeDiff+ 44, // 32: bytebase.v1.TaskRunLogEntry.release_file_execute:type_name -> bytebase.v1.TaskRunLogEntry.ReleaseFileExecute+ 49, // 33: bytebase.v1.TaskRunSession.postgres:type_name -> bytebase.v1.TaskRunSession.Postgres+ 52, // 34: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat+ 51, // 35: bytebase.v1.TaskRun.SchedulerInfo.report_time:type_name -> google.protobuf.Timestamp+ 35, // 36: bytebase.v1.TaskRun.SchedulerInfo.waiting_cause:type_name -> bytebase.v1.TaskRun.SchedulerInfo.WaitingCause+ 51, // 37: bytebase.v1.TaskRunLogEntry.SchemaDump.start_time:type_name -> google.protobuf.Timestamp+ 51, // 38: bytebase.v1.TaskRunLogEntry.SchemaDump.end_time:type_name -> google.protobuf.Timestamp+ 51, // 39: bytebase.v1.TaskRunLogEntry.CommandExecute.log_time:type_name -> google.protobuf.Timestamp+ 53, // 40: bytebase.v1.TaskRunLogEntry.CommandExecute.range:type_name -> bytebase.v1.Range+ 45, // 41: bytebase.v1.TaskRunLogEntry.CommandExecute.response:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse+ 51, // 42: bytebase.v1.TaskRunLogEntry.DatabaseSync.start_time:type_name -> google.protobuf.Timestamp+ 51, // 43: bytebase.v1.TaskRunLogEntry.DatabaseSync.end_time:type_name -> google.protobuf.Timestamp+ 5, // 44: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.status:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status+ 6, // 45: bytebase.v1.TaskRunLogEntry.TransactionControl.type:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl.Type+ 51, // 46: bytebase.v1.TaskRunLogEntry.PriorBackup.start_time:type_name -> google.protobuf.Timestamp+ 51, // 47: bytebase.v1.TaskRunLogEntry.PriorBackup.end_time:type_name -> google.protobuf.Timestamp+ 46, // 48: bytebase.v1.TaskRunLogEntry.PriorBackup.prior_backup_detail:type_name -> bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail+ 51, // 49: bytebase.v1.TaskRunLogEntry.ComputeDiff.start_time:type_name -> google.protobuf.Timestamp+ 51, // 50: bytebase.v1.TaskRunLogEntry.ComputeDiff.end_time:type_name -> google.protobuf.Timestamp+ 51, // 51: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.log_time:type_name -> google.protobuf.Timestamp+ 47, // 52: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.items:type_name -> bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item+ 48, // 53: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.source_table:type_name -> bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table+ 48, // 54: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.target_table:type_name -> bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table+ 54, // 55: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.start_position:type_name -> bytebase.v1.Position+ 54, // 56: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.end_position:type_name -> bytebase.v1.Position+ 50, // 57: bytebase.v1.TaskRunSession.Postgres.session:type_name -> bytebase.v1.TaskRunSession.Postgres.Session+ 50, // 58: bytebase.v1.TaskRunSession.Postgres.blocking_sessions:type_name -> bytebase.v1.TaskRunSession.Postgres.Session+ 50, // 59: bytebase.v1.TaskRunSession.Postgres.blocked_sessions:type_name -> bytebase.v1.TaskRunSession.Postgres.Session+ 51, // 60: bytebase.v1.TaskRunSession.Postgres.Session.backend_start:type_name -> google.protobuf.Timestamp+ 51, // 61: bytebase.v1.TaskRunSession.Postgres.Session.xact_start:type_name -> google.protobuf.Timestamp+ 51, // 62: bytebase.v1.TaskRunSession.Postgres.Session.query_start:type_name -> google.protobuf.Timestamp+ 13, // 63: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest+ 14, // 64: bytebase.v1.RolloutService.ListRollouts:input_type -> bytebase.v1.ListRolloutsRequest+ 16, // 65: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest+ 17, // 66: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest+ 19, // 67: bytebase.v1.RolloutService.GetTaskRun:input_type -> bytebase.v1.GetTaskRunRequest+ 20, // 68: bytebase.v1.RolloutService.GetTaskRunLog:input_type -> bytebase.v1.GetTaskRunLogRequest+ 27, // 69: bytebase.v1.RolloutService.GetTaskRunSession:input_type -> bytebase.v1.GetTaskRunSessionRequest+ 7, // 70: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest+ 9, // 71: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest+ 11, // 72: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest+ 29, // 73: bytebase.v1.RolloutService.PreviewTaskRunRollback:input_type -> bytebase.v1.PreviewTaskRunRollbackRequest+ 21, // 74: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout+ 15, // 75: bytebase.v1.RolloutService.ListRollouts:output_type -> bytebase.v1.ListRolloutsResponse+ 21, // 76: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout+ 18, // 77: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse+ 24, // 78: bytebase.v1.RolloutService.GetTaskRun:output_type -> bytebase.v1.TaskRun+ 25, // 79: bytebase.v1.RolloutService.GetTaskRunLog:output_type -> bytebase.v1.TaskRunLog+ 28, // 80: bytebase.v1.RolloutService.GetTaskRunSession:output_type -> bytebase.v1.TaskRunSession+ 8, // 81: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse+ 10, // 82: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse+ 12, // 83: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse+ 30, // 84: bytebase.v1.RolloutService.PreviewTaskRunRollback:output_type -> bytebase.v1.PreviewTaskRunRollbackResponse+ 74, // [74:85] is the sub-list for method output_type+ 63, // [63:74] is the sub-list for method input_type+ 63, // [63:63] is the sub-list for extension type_name+ 63, // [63:63] is the sub-list for extension extendee+ 0, // [0:63] is the sub-list for field type_name}func init() { file_v1_rollout_service_proto_init() }@@ -4026,7 +4027,7 @@ func file_v1_rollout_service_proto_init() {(*Task_DatabaseUpdate_Release)(nil),}file_v1_rollout_service_proto_msgTypes[26].OneofWrappers = []any{}- file_v1_rollout_service_proto_msgTypes[31].OneofWrappers = []any{+ file_v1_rollout_service_proto_msgTypes[28].OneofWrappers = []any{(*TaskRun_SchedulerInfo_WaitingCause_ParallelTasksLimit)(nil),}file_v1_rollout_service_proto_msgTypes[43].OneofWrappers = []any{}diff --git a/backend/generated-go/v1/rollout_service_equal.pb.go b/backend/generated-go/v1/rollout_service_equal.pb.goindex 564b9ea3c9..147827c9c5 100644--- a/backend/generated-go/v1/rollout_service_equal.pb.go+++ b/backend/generated-go/v1/rollout_service_equal.pb.go@@ -403,65 +403,6 @@ func (x *Task) Equal(y *Task) bool {return true}-func (x *TaskRun_PriorBackupDetail_Item_Table) Equal(y *TaskRun_PriorBackupDetail_Item_Table) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if x.Database != y.Database {- return false- }- if x.Schema != y.Schema {- return false- }- if x.Table != y.Table {- return false- }- return true-}--func (x *TaskRun_PriorBackupDetail_Item) Equal(y *TaskRun_PriorBackupDetail_Item) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if !x.SourceTable.Equal(y.SourceTable) {- return false- }- if !x.TargetTable.Equal(y.TargetTable) {- return false- }- if !x.StartPosition.Equal(y.StartPosition) {- return false- }- if !x.EndPosition.Equal(y.EndPosition) {- return false- }- return true-}--func (x *TaskRun_PriorBackupDetail) Equal(y *TaskRun_PriorBackupDetail) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if len(x.Items) != len(y.Items) {- return false- }- for i := 0; i < len(x.Items); i++ {- if !x.Items[i].Equal(y.Items[i]) {- return false- }- }- return true-}-func (x *TaskRun_SchedulerInfo_WaitingCause) Equal(y *TaskRun_SchedulerInfo_WaitingCause) bool {if x == y {return true@@ -522,7 +463,7 @@ func (x *TaskRun) Equal(y *TaskRun) bool {if x.ExportArchiveStatus != y.ExportArchiveStatus {return false}- if !x.PriorBackupDetail.Equal(y.PriorBackupDetail) {+ if x.HasPriorBackup != y.HasPriorBackup {return false}if !x.SchedulerInfo.Equal(y.SchedulerInfo) {@@ -671,6 +612,65 @@ func (x *TaskRunLogEntry_TransactionControl) Equal(y *TaskRunLogEntry_Transactioreturn true}+func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) Equal(y *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table) bool {+ if x == y {+ return true+ }+ if x == nil || y == nil {+ return x == nil && y == nil+ }+ if x.Database != y.Database {+ return false+ }+ if x.Schema != y.Schema {+ return false+ }+ if x.Table != y.Table {+ return false+ }+ return true+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) Equal(y *TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item) bool {+ if x == y {+ return true+ }+ if x == nil || y == nil {+ return x == nil && y == nil+ }+ if !x.SourceTable.Equal(y.SourceTable) {+ return false+ }+ if !x.TargetTable.Equal(y.TargetTable) {+ return false+ }+ if !x.StartPosition.Equal(y.StartPosition) {+ return false+ }+ if !x.EndPosition.Equal(y.EndPosition) {+ return false+ }+ return true+}++func (x *TaskRunLogEntry_PriorBackup_PriorBackupDetail) Equal(y *TaskRunLogEntry_PriorBackup_PriorBackupDetail) bool {+ if x == y {+ return true+ }+ if x == nil || y == nil {+ return x == nil && y == nil+ }+ if len(x.Items) != len(y.Items) {+ return false+ }+ for i := 0; i < len(x.Items); i++ {+ if !x.Items[i].Equal(y.Items[i]) {+ return false+ }+ }+ return true+}+func (x *TaskRunLogEntry_PriorBackup) Equal(y *TaskRunLogEntry_PriorBackup) bool {if x == y {return truediff --git a/backend/runner/taskrun/database_migrate_executor.go b/backend/runner/taskrun/database_migrate_executor.goindex 62566ccf4b..d2f93f28fc 100644--- a/backend/runner/taskrun/database_migrate_executor.go+++ b/backend/runner/taskrun/database_migrate_executor.go@@ -154,8 +154,8 @@ func (exec *DatabaseMigrateExecutor) runMigrationWithPriorBackup(ctx context.Conresult, err := runMigration(ctx, driverCtx, exec.store, exec.dbFactory, exec.schemaSyncer, exec.profile, task, taskRunUID, sheet, "", storepb.SchemaChangeType_SCHEMA_CHANGE_TYPE_UNSPECIFIED)if result != nil {- // Save prior backup detail to task run result.- result.PriorBackupDetail = priorBackupDetail+ // Set has_prior_backup flag based on whether backup was created.+ result.HasPriorBackup = priorBackupDetail != nil && len(priorBackupDetail.Items) > 0}return result, err}diff --git a/backend/runner/taskrun/schema_update_sdl_executor_test.go b/backend/runner/taskrun/schema_update_sdl_executor_test.godeleted file mode 100644index e1fd1b5022..0000000000--- a/backend/runner/taskrun/schema_update_sdl_executor_test.go+++ /dev/null@@ -1,57 +0,0 @@-package taskrun--import (- "testing"-- "github.com/stretchr/testify/require"-- "github.com/bytebase/bytebase/backend/common"-)--func TestSheetResourceParsing(t *testing.T) {- // Test that we can use the common function correctly- tests := []struct {- name string- resource string- expectedSha256 string- expectError bool- }{- {- name: "valid_resource",- resource: "projects/123/sheets/abc123",- expectedSha256: "abc123",- expectError: false,- },- {- name: "another_valid_resource",- resource: "projects/myproject/sheets/def456",- expectedSha256: "def456",- expectError: false,- },- {- name: "invalid_format_missing_sheets",- resource: "projects/123/documents/456",- expectedSha256: "",- expectError: true,- },- {- name: "invalid_format_wrong_structure",- resource: "projects/123",- expectedSha256: "",- expectError: true,- },- }-- for _, tt := range tests {- t.Run(tt.name, func(t *testing.T) {- _, sheetSha256, err := common.GetProjectResourceIDSheetSha256(tt.resource)-- if tt.expectError {- require.Error(t, err)- } else {- require.NoError(t, err)- require.Equal(t, tt.expectedSha256, sheetSha256)- }- })- }-}diff --git a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vue b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vueindex a9685d55f2..16079ab383 100644--- a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vue@@ -61,7 +61,7 @@ const shouldShowTaskRollbackSection = computed((): boolean => {if (latestTaskRun.value.status !== TaskRun_Status.DONE) {return false;}- if (latestTaskRun.value.priorBackupDetail?.items.length === 0) {+ if (!latestTaskRun.value.hasPriorBackup) {return false;}return true;diff --git a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vue b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vueindex f10c69f753..9b1e2dad02 100644--- a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vue@@ -57,7 +57,7 @@ const createRestoreIssue = async () => {if (!allowRollback.value) {return;}- if (!latestTaskRun.value?.priorBackupDetail) {+ if (!latestTaskRun.value?.hasPriorBackup) {return;}diff --git a/frontend/src/components/RolloutV1/components/TaskRunRollbackSection.vue b/frontend/src/components/RolloutV1/components/TaskRunRollbackSection.vueindex 3e740237c3..066146f02d 100644--- a/frontend/src/components/RolloutV1/components/TaskRunRollbackSection.vue+++ b/frontend/src/components/RolloutV1/components/TaskRunRollbackSection.vue@@ -60,7 +60,7 @@ const rollbackableTaskRuns = computed(() => {(run) =>run.name.startsWith(`${task.name}/${taskRunNamePrefix}`) &&run.status === TaskRun_Status.DONE &&- run.priorBackupDetail !== undefined+ run.hasPriorBackup);if (rollbackableRun) {diff --git a/frontend/src/components/RolloutV1/components/TaskView.vue b/frontend/src/components/RolloutV1/components/TaskView.vueindex 3229f8be47..55afd1143b 100644--- a/frontend/src/components/RolloutV1/components/TaskView.vue+++ b/frontend/src/components/RolloutV1/components/TaskView.vue@@ -239,7 +239,7 @@ const rollbackableTaskRun = computed(() => {if (latestTaskRun.value &&latestTaskRun.value.status === TaskRun_Status.DONE &&- latestTaskRun.value.priorBackupDetail !== undefined+ latestTaskRun.value.hasPriorBackup) {return latestTaskRun.value;}diff --git a/frontend/src/components/RolloutV1/components/composables/useRollbackableTasks.ts b/frontend/src/components/RolloutV1/components/composables/useRollbackableTasks.tsindex 32ee99b447..a7dad7cfe4 100644--- a/frontend/src/components/RolloutV1/components/composables/useRollbackableTasks.ts+++ b/frontend/src/components/RolloutV1/components/composables/useRollbackableTasks.ts@@ -34,7 +34,7 @@ export const useRollbackableTasks = ((run) =>run.name.startsWith(`${task.name}/${taskRunNamePrefix}`) &&run.status === TaskRun_Status.DONE &&- run.priorBackupDetail !== undefined+ run.hasPriorBackup);if (rollbackableRun) {diff --git a/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts b/frontend/src/types/proto-es/v1/rollout_service_pb.d.tsindex b344698188..864a5cb67a 100644--- a/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts@@ -850,11 +850,13 @@ export declare type TaskRun = Message<"bytebase.v1.TaskRun"> & {exportArchiveStatus: TaskRun_ExportArchiveStatus;/**- * The prior backup detail that will be used to rollback the task run.+ * Indicates whether a prior backup was created for this task run.+ * When true, rollback SQL can be generated via PreviewTaskRunRollback.+ * Backup details are available in the task run logs.*- * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail prior_backup_detail = 11;+ * @generated from field: bool has_prior_backup = 11;*/- priorBackupDetail?: TaskRun_PriorBackupDetail;+ hasPriorBackup: boolean;/*** Scheduling information about the task run.@@ -878,102 +880,6 @@ export declare type TaskRun = Message<"bytebase.v1.TaskRun"> & {*/export declare const TaskRunSchema: GenMessage<TaskRun>;-/**- * Prior backup detail for rollback purposes.- *- * @generated from message bytebase.v1.TaskRun.PriorBackupDetail- */-export declare type TaskRun_PriorBackupDetail = Message<"bytebase.v1.TaskRun.PriorBackupDetail"> & {- /**- * The list of backed up tables.- *- * @generated from field: repeated bytebase.v1.TaskRun.PriorBackupDetail.Item items = 1;- */- items: TaskRun_PriorBackupDetail_Item[];-};--/**- * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.- * Use `create(TaskRun_PriorBackupDetailSchema)` to create a new message.- */-export declare const TaskRun_PriorBackupDetailSchema: GenMessage<TaskRun_PriorBackupDetail>;--/**- * A single backup table mapping.- *- * @generated from message bytebase.v1.TaskRun.PriorBackupDetail.Item- */-export declare type TaskRun_PriorBackupDetail_Item = Message<"bytebase.v1.TaskRun.PriorBackupDetail.Item"> & {- /**- * The original table information.- *- * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail.Item.Table source_table = 1;- */- sourceTable?: TaskRun_PriorBackupDetail_Item_Table;-- /**- * The target backup table information.- *- * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail.Item.Table target_table = 2;- */- targetTable?: TaskRun_PriorBackupDetail_Item_Table;-- /**- * The start position in the SQL statement.- *- * @generated from field: bytebase.v1.Position start_position = 3;- */- startPosition?: Position;-- /**- * The end position in the SQL statement.- *- * @generated from field: bytebase.v1.Position end_position = 4;- */- endPosition?: Position;-};--/**- * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.- * Use `create(TaskRun_PriorBackupDetail_ItemSchema)` to create a new message.- */-export declare const TaskRun_PriorBackupDetail_ItemSchema: GenMessage<TaskRun_PriorBackupDetail_Item>;--/**- * Table information.- *- * @generated from message bytebase.v1.TaskRun.PriorBackupDetail.Item.Table- */-export declare type TaskRun_PriorBackupDetail_Item_Table = Message<"bytebase.v1.TaskRun.PriorBackupDetail.Item.Table"> & {- /**- * The database information.- * Format: instances/{instance}/databases/{database}- *- * @generated from field: string database = 1;- */- database: string;-- /**- * The schema name.- *- * @generated from field: string schema = 2;- */- schema: string;-- /**- * The table name.- *- * @generated from field: string table = 3;- */- table: string;-};--/**- * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.Table.- * Use `create(TaskRun_PriorBackupDetail_Item_TableSchema)` to create a new message.- */-export declare const TaskRun_PriorBackupDetail_Item_TableSchema: GenMessage<TaskRun_PriorBackupDetail_Item_Table>;-/*** Information about task run scheduling.*@@ -1535,9 +1441,9 @@ export declare type TaskRunLogEntry_PriorBackup = Message<"bytebase.v1.TaskRunLo/*** The backup details.*- * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail prior_backup_detail = 3;+ * @generated from field: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail prior_backup_detail = 3;*/- priorBackupDetail?: TaskRun_PriorBackupDetail;+ priorBackupDetail?: TaskRunLogEntry_PriorBackup_PriorBackupDetail;/*** Error message if the backup failed.@@ -1553,6 +1459,102 @@ export declare type TaskRunLogEntry_PriorBackup = Message<"bytebase.v1.TaskRunLo*/export declare const TaskRunLogEntry_PriorBackupSchema: GenMessage<TaskRunLogEntry_PriorBackup>;+/**+ * Prior backup detail for rollback purposes.+ *+ * @generated from message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail+ */+export declare type TaskRunLogEntry_PriorBackup_PriorBackupDetail = Message<"bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail"> & {+ /**+ * The list of backed up tables.+ *+ * @generated from field: repeated bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item items = 1;+ */+ items: TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item[];+};++/**+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.+ * Use `create(TaskRunLogEntry_PriorBackup_PriorBackupDetailSchema)` to create a new message.+ */+export declare const TaskRunLogEntry_PriorBackup_PriorBackupDetailSchema: GenMessage<TaskRunLogEntry_PriorBackup_PriorBackupDetail>;++/**+ * A single backup table mapping.+ *+ * @generated from message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item+ */+export declare type TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item = Message<"bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item"> & {+ /**+ * The original table information.+ *+ * @generated from field: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table source_table = 1;+ */+ sourceTable?: TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table;++ /**+ * The target backup table information.+ *+ * @generated from field: bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table target_table = 2;+ */+ targetTable?: TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table;++ /**+ * The start position in the SQL statement.+ *+ * @generated from field: bytebase.v1.Position start_position = 3;+ */+ startPosition?: Position;++ /**+ * The end position in the SQL statement.+ *+ * @generated from field: bytebase.v1.Position end_position = 4;+ */+ endPosition?: Position;+};++/**+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.+ * Use `create(TaskRunLogEntry_PriorBackup_PriorBackupDetail_ItemSchema)` to create a new message.+ */+export declare const TaskRunLogEntry_PriorBackup_PriorBackupDetail_ItemSchema: GenMessage<TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item>;++/**+ * Table information.+ *+ * @generated from message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table+ */+export declare type TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table = Message<"bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table"> & {+ /**+ * The database information.+ * Format: instances/{instance}/databases/{database}+ *+ * @generated from field: string database = 1;+ */+ database: string;++ /**+ * The schema name.+ *+ * @generated from field: string schema = 2;+ */+ schema: string;++ /**+ * The table name.+ *+ * @generated from field: string table = 3;+ */+ table: string;+};++/**+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table.+ * Use `create(TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_TableSchema)` to create a new message.+ */+export declare const TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_TableSchema: GenMessage<TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_Table>;+/*** Retry information for failed operations.*diff --git a/frontend/src/types/proto-es/v1/rollout_service_pb.js b/frontend/src/types/proto-es/v1/rollout_service_pb.jsindex b079e32474..8ba56e15d1 100644--- a/frontend/src/types/proto-es/v1/rollout_service_pb.js+++ b/frontend/src/types/proto-es/v1/rollout_service_pb.js@@ -16,7 +16,7 @@ import { file_v1_common } from "./common_pb";* Describes the file v1/rollout_service.proto.*/export const file_v1_rollout_service = /*@__PURE__*/- fileDesc("Chh2MS9yb2xsb3V0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIpEBChRCYXRjaFJ1blRhc2tzUmVxdWVzdBIqCgZwYXJlbnQYASABKAlCGuBBAvpBFAoSYnl0ZWJhc2UuY29tL1N0YWdlEg0KBXRhc2tzGAIgAygJEjEKCHJ1bl90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAiAEBQgsKCV9ydW5fdGltZSIXChVCYXRjaFJ1blRhc2tzUmVzcG9uc2UibAoVQmF0Y2hTa2lwVGFza3NSZXF1ZXN0EioKBnBhcmVudBgBIAEoCUIa4EEC+kEUChJieXRlYmFzZS5jb20vU3RhZ2USDQoFdGFza3MYAiADKAkSGAoG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rqMBBiYi50YXNrUnVucy5saXN0kOowAYLT5JMCVjoBKiJRL3YxL3tuYW1lPXByb2plY3RzLyovcGxhbnMvKi9yb2xsb3V0L3N0YWdlcy8qL3Rhc2tzLyovdGFza1J1bnMvKn06cHJldmlld1JvbGxiYWNrQqkBCg9jb20uYnl0ZWJhc2UudjFCE1JvbGxvdXRTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);+ fileDesc("Chh2MS9yb2xsb3V0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIpEBChRCYXRjaFJ1blRhc2tzUmVxdWVzdBIqCgZwYXJlbnQYASABKAlCGuBBAvpBFAoSYnl0ZWJhc2UuY29tL1N0YWdlEg0KBXRhc2tzGAIgAygJEjEKCHJ1bl90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAiAEBQgsKCV9ydW5fdGltZSIXChVCYXRjaFJ1blRhc2tzUmVzcG9uc2UibAoVQmF0Y2hTa2lwVGFza3NSZXF1ZXN0EioKBnBhcmVudBgBIAEoCUIa4EEC+kEUChJieXRlYmFzZS5jb20vU3RhZ2USDQoFdGFza3MYAiADKAkSGAoGcmVhc29uGAMgASgJQgi6SAVyAxjoByIYChZCYXRjaFNraXBUYXNrc1Jlc3BvbnNlIloKGkJhdGNoQ2FuY2VsVGFza1J1bnNSZXF1ZXN0EikKBnBhcmVudBgBIAEoCUIZ4EEC+kETChFieXRlYmFzZS5jb20vVGFzaxIRCgl0YXNrX3J1bnMYA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XdSb2xsYmFja0KpAQoPY29tLmJ5dGViYXNlLnYxQhNSb2xsb3V0U2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);/*** Describes the message bytebase.v1.BatchRunTasksRequest.@@ -189,40 +189,19 @@ export const Task_Type = /*@__PURE__*/export const TaskRunSchema = /*@__PURE__*/messageDesc(file_v1_rollout_service, 17);-/**- * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.- * Use `create(TaskRun_PriorBackupDetailSchema)` to create a new message.- */-export const TaskRun_PriorBackupDetailSchema = /*@__PURE__*/- messageDesc(file_v1_rollout_service, 17, 0);--/**- * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.- * Use `create(TaskRun_PriorBackupDetail_ItemSchema)` to create a new message.- */-export const TaskRun_PriorBackupDetail_ItemSchema = /*@__PURE__*/- messageDesc(file_v1_rollout_service, 17, 0, 0);--/**- * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.Table.- * Use `create(TaskRun_PriorBackupDetail_Item_TableSchema)` to create a new message.- */-export const TaskRun_PriorBackupDetail_Item_TableSchema = /*@__PURE__*/- messageDesc(file_v1_rollout_service, 17, 0, 0, 0);-/*** Describes the message bytebase.v1.TaskRun.SchedulerInfo.* Use `create(TaskRun_SchedulerInfoSchema)` to create a new message.*/export const TaskRun_SchedulerInfoSchema = /*@__PURE__*/- messageDesc(file_v1_rollout_service, 17, 1);+ messageDesc(file_v1_rollout_service, 17, 0);/*** Describes the message bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.* Use `create(TaskRun_SchedulerInfo_WaitingCauseSchema)` to create a new message.*/export const TaskRun_SchedulerInfo_WaitingCauseSchema = /*@__PURE__*/- messageDesc(file_v1_rollout_service, 17, 1, 0);+ messageDesc(file_v1_rollout_service, 17, 0, 0);/*** Describes the enum bytebase.v1.TaskRun.Status.@@ -339,6 +318,27 @@ export const TaskRunLogEntry_TransactionControl_Type = /*@__PURE__*/export const TaskRunLogEntry_PriorBackupSchema = /*@__PURE__*/messageDesc(file_v1_rollout_service, 19, 5);+/**+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.+ * Use `create(TaskRunLogEntry_PriorBackup_PriorBackupDetailSchema)` to create a new message.+ */+export const TaskRunLogEntry_PriorBackup_PriorBackupDetailSchema = /*@__PURE__*/+ messageDesc(file_v1_rollout_service, 19, 5, 0);++/**+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.+ * Use `create(TaskRunLogEntry_PriorBackup_PriorBackupDetail_ItemSchema)` to create a new message.+ */+export const TaskRunLogEntry_PriorBackup_PriorBackupDetail_ItemSchema = /*@__PURE__*/+ messageDesc(file_v1_rollout_service, 19, 5, 0, 0);++/**+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table.+ * Use `create(TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_TableSchema)` to create a new message.+ */+export const TaskRunLogEntry_PriorBackup_PriorBackupDetail_Item_TableSchema = /*@__PURE__*/+ messageDesc(file_v1_rollout_service, 19, 5, 0, 0, 0);+/*** Describes the message bytebase.v1.TaskRunLogEntry.RetryInfo.* Use `create(TaskRunLogEntry_RetryInfoSchema)` to create a new message.diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 406b6638f3..104371a7ea 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -12104,6 +12104,15 @@ components:- $ref: '#/components/schemas/Position'description: The end position in the SQL statement.description: A single backup table mapping.+ PriorBackup_PriorBackupDetail:+ type: object+ properties:+ items:+ type: array+ items:+ $ref: '#/components/schemas/PriorBackupDetail_Item'+ description: The list of backed up tables.+ description: Prior backup detail for rollback purposes.ProcedureMetadata:type: objectproperties:@@ -14268,10 +14277,12 @@ components:type: stringdescription: The export archive status for data export tasks.format: enum- priorBackupDetail:- allOf:- - $ref: '#/components/schemas/TaskRun_PriorBackupDetail'- description: The prior backup detail that will be used to rollback the task run.+ hasPriorBackup:+ type: boolean+ description: |-+ Indicates whether a prior backup was created for this task run.+ When true, rollback SQL can be generated via PreviewTaskRunRollback.+ Backup details are available in the task run logs.schedulerInfo:readOnly: trueallOf:@@ -14421,7 +14432,7 @@ components:format: date-timepriorBackupDetail:allOf:- - $ref: '#/components/schemas/TaskRun_PriorBackupDetail'+ - $ref: '#/components/schemas/PriorBackup_PriorBackupDetail'description: The backup details.error:type: string@@ -14523,15 +14534,6 @@ components:$ref: '#/components/schemas/Postgres_Session'description: '`blocked_sessions` are blocked by `session`.'description: PostgreSQL session information.- TaskRun_PriorBackupDetail:- type: object- properties:- items:- type: array- items:- $ref: '#/components/schemas/PriorBackupDetail_Item'- description: The list of backed up tables.- description: Prior backup detail for rollback purposes.TaskRun_SchedulerInfo:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex be4ff2b8e5..a8ed4c9cde 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -282,9 +282,6 @@- [Task.Type](#bytebase-store-Task-Type)- [store/task_run.proto](#store_task_run-proto)- - [PriorBackupDetail](#bytebase-store-PriorBackupDetail)- - [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item)- - [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table)- [SchedulerInfo](#bytebase-store-SchedulerInfo)- [SchedulerInfo.WaitingCause](#bytebase-store-SchedulerInfo-WaitingCause)- [TaskRun](#bytebase-store-TaskRun)@@ -293,6 +290,9 @@- [TaskRun.Status](#bytebase-store-TaskRun-Status)- [store/task_run_log.proto](#store_task_run_log-proto)+ - [PriorBackupDetail](#bytebase-store-PriorBackupDetail)+ - [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item)+ - [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table)- [TaskRunLog](#bytebase-store-TaskRunLog)- [TaskRunLog.CommandExecute](#bytebase-store-TaskRunLog-CommandExecute)- [TaskRunLog.CommandResponse](#bytebase-store-TaskRunLog-CommandResponse)@@ -4661,56 +4661,6 @@ Type represents the type of database operation to perform.-<a name="bytebase-store-PriorBackupDetail"></a>--### PriorBackupDetail-PriorBackupDetail contains information about automatic backups created before migration.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| items | [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item) | repeated | List of backup operations performed. |-------<a name="bytebase-store-PriorBackupDetail-Item"></a>--### PriorBackupDetail.Item-Item represents a single backup operation for a table.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| source_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The original table that was backed up. |-| target_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The backup table where data was copied. |-| start_position | [Position](#bytebase-store-Position) | | Starting position in SQL for this backup operation. |-| end_position | [Position](#bytebase-store-Position) | | Ending position in SQL for this backup operation. |-------<a name="bytebase-store-PriorBackupDetail-Item-Table"></a>--### PriorBackupDetail.Item.Table-Table identifies a database table.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The database containing the table. Format: instances/{instance}/databases/{database} |-| schema | [string](#string) | | Schema name (for databases that support schemas). |-| table | [string](#string) | | Table name. |------<a name="bytebase-store-SchedulerInfo"></a>### SchedulerInfo@@ -4764,7 +4714,7 @@ TaskRunResult contains the outcome and metadata from a task run execution.| ----- | ---- | ----- | ----------- || detail | [string](#string) | | Error message for failed task runs. Empty for successful or canceled runs. || export_archive_uid | [int32](#int32) | | UID of the export archive generated for export tasks. |-| prior_backup_detail | [PriorBackupDetail](#bytebase-store-PriorBackupDetail) | | Backup details that can be used to rollback changes. |+| has_prior_backup | [bool](#bool) | | Indicates whether a prior backup was created for this task run. When true, the task run can be rolled back using the backup tables. Backup details are available in the task run logs (PRIOR_BACKUP log entries). |@@ -4806,6 +4756,56 @@ Status represents the current execution state of a task run.+<a name="bytebase-store-PriorBackupDetail"></a>++### PriorBackupDetail+PriorBackupDetail contains information about automatic backups created before migration.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| items | [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item) | repeated | List of backup operations performed. |+++++++<a name="bytebase-store-PriorBackupDetail-Item"></a>++### PriorBackupDetail.Item+Item represents a single backup operation for a table.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| source_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The original table that was backed up. |+| target_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The backup table where data was copied. |+| start_position | [Position](#bytebase-store-Position) | | Starting position in SQL for this backup operation. |+| end_position | [Position](#bytebase-store-Position) | | Ending position in SQL for this backup operation. |+++++++<a name="bytebase-store-PriorBackupDetail-Item-Table"></a>++### PriorBackupDetail.Item.Table+Table identifies a database table.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| database | [string](#string) | | The database containing the table. Format: instances/{instance}/databases/{database} |+| schema | [string](#string) | | Schema name (for databases that support schemas). |+| table | [string](#string) | | Table name. |++++++<a name="bytebase-store-TaskRunLog"></a>### TaskRunLogdiff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 6e10b38c7d..9542c486f2 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -1301,18 +1301,6 @@<a href="#store%2ftask_run.proto">store/task_run.proto</a><ul>- <li>- <a href="#bytebase.store.PriorBackupDetail"><span class="badge">M</span>PriorBackupDetail</a>- </li>-- <li>- <a href="#bytebase.store.PriorBackupDetail.Item"><span class="badge">M</span>PriorBackupDetail.Item</a>- </li>-- <li>- <a href="#bytebase.store.PriorBackupDetail.Item.Table"><span class="badge">M</span>PriorBackupDetail.Item.Table</a>- </li>-<li><a href="#bytebase.store.SchedulerInfo"><span class="badge">M</span>SchedulerInfo</a></li>@@ -1344,6 +1332,18 @@<a href="#store%2ftask_run_log.proto">store/task_run_log.proto</a><ul>+ <li>+ <a href="#bytebase.store.PriorBackupDetail"><span class="badge">M</span>PriorBackupDetail</a>+ </li>++ <li>+ <a href="#bytebase.store.PriorBackupDetail.Item"><span class="badge">M</span>PriorBackupDetail.Item</a>+ </li>++ <li>+ <a href="#bytebase.store.PriorBackupDetail.Item.Table"><span class="badge">M</span>PriorBackupDetail.Item.Table</a>+ </li>+<li><a href="#bytebase.store.TaskRunLog"><span class="badge">M</span>TaskRunLog</a></li>@@ -12703,114 +12703,6 @@ or sheet content for non-release tasks.</p></td><p></p>- <h3 id="bytebase.store.PriorBackupDetail">PriorBackupDetail</h3>- <p>PriorBackupDetail contains information about automatic backups created before migration.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>items</td>- <td><a href="#bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</a></td>- <td>repeated</td>- <td><p>List of backup operations performed. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</h3>- <p>Item represents a single backup operation for a table.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>source_table</td>- <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>- <td></td>- <td><p>The original table that was backed up. </p></td>- </tr>-- <tr>- <td>target_table</td>- <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>- <td></td>- <td><p>The backup table where data was copied. </p></td>- </tr>-- <tr>- <td>start_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>- <td></td>- <td><p>Starting position in SQL for this backup operation. </p></td>- </tr>-- <tr>- <td>end_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>- <td></td>- <td><p>Ending position in SQL for this backup operation. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</h3>- <p>Table identifies a database table.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database containing the table.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Schema name (for databases that support schemas). </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Table name. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.store.SchedulerInfo">SchedulerInfo</h3><p>SchedulerInfo contains information about task scheduling and execution delays.</p>@@ -12912,10 +12804,12 @@ Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>prior_backup_detail</td>- <td><a href="#bytebase.store.PriorBackupDetail">PriorBackupDetail</a></td>+ <td>has_prior_backup</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Backup details that can be used to rollback changes. </p></td>+ <td><p>Indicates whether a prior backup was created for this task run.+When true, the task run can be rolled back using the backup tables.+Backup details are available in the task run logs (PRIOR_BACKUP log entries). </p></td></tr></tbody>@@ -13004,6 +12898,114 @@ Format: instances/{instance}/databases/{database} </p></td><p></p>+ <h3 id="bytebase.store.PriorBackupDetail">PriorBackupDetail</h3>+ <p>PriorBackupDetail contains information about automatic backups created before migration.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>items</td>+ <td><a href="#bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</a></td>+ <td>repeated</td>+ <td><p>List of backup operations performed. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</h3>+ <p>Item represents a single backup operation for a table.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>source_table</td>+ <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>+ <td></td>+ <td><p>The original table that was backed up. </p></td>+ </tr>++ <tr>+ <td>target_table</td>+ <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>+ <td></td>+ <td><p>The backup table where data was copied. </p></td>+ </tr>++ <tr>+ <td>start_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td>+ <td></td>+ <td><p>Starting position in SQL for this backup operation. </p></td>+ </tr>++ <tr>+ <td>end_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td>+ <td></td>+ <td><p>Ending position in SQL for this backup operation. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</h3>+ <p>Table identifies a database table.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The database containing the table.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>++ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Schema name (for databases that support schemas). </p></td>+ </tr>++ <tr>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Table name. </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.store.TaskRunLog">TaskRunLog</h3><p></p>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 9abac2c80c..283a67893f 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -596,9 +596,6 @@- [Task.DatabaseDataExport](#bytebase-v1-Task-DatabaseDataExport)- [Task.DatabaseUpdate](#bytebase-v1-Task-DatabaseUpdate)- [TaskRun](#bytebase-v1-TaskRun)- - [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail)- - [TaskRun.PriorBackupDetail.Item](#bytebase-v1-TaskRun-PriorBackupDetail-Item)- - [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table)- [TaskRun.SchedulerInfo](#bytebase-v1-TaskRun-SchedulerInfo)- [TaskRun.SchedulerInfo.WaitingCause](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause)- [TaskRunLog](#bytebase-v1-TaskRunLog)@@ -608,6 +605,9 @@- [TaskRunLogEntry.ComputeDiff](#bytebase-v1-TaskRunLogEntry-ComputeDiff)- [TaskRunLogEntry.DatabaseSync](#bytebase-v1-TaskRunLogEntry-DatabaseSync)- [TaskRunLogEntry.PriorBackup](#bytebase-v1-TaskRunLogEntry-PriorBackup)+ - [TaskRunLogEntry.PriorBackup.PriorBackupDetail](#bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail)+ - [TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item](#bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail-Item)+ - [TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail-Item-Table)- [TaskRunLogEntry.ReleaseFileExecute](#bytebase-v1-TaskRunLogEntry-ReleaseFileExecute)- [TaskRunLogEntry.RetryInfo](#bytebase-v1-TaskRunLogEntry-RetryInfo)- [TaskRunLogEntry.SchemaDump](#bytebase-v1-TaskRunLogEntry-SchemaDump)@@ -9703,7 +9703,7 @@ Payload for updating a database schema.| detail | [string](#string) | | Below are the results of a task run. Detailed information about the task run result. || start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The time when the task run started execution. || export_archive_status | [TaskRun.ExportArchiveStatus](#bytebase-v1-TaskRun-ExportArchiveStatus) | | The export archive status for data export tasks. |-| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | The prior backup detail that will be used to rollback the task run. |+| has_prior_backup | [bool](#bool) | | Indicates whether a prior backup was created for this task run. When true, rollback SQL can be generated via PreviewTaskRunRollback. Backup details are available in the task run logs. || scheduler_info | [TaskRun.SchedulerInfo](#bytebase-v1-TaskRun-SchedulerInfo) | | Scheduling information about the task run. || run_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | The task run should run after run_time. This can only be set when creating the task run calling BatchRunTasks. |@@ -9712,56 +9712,6 @@ Payload for updating a database schema.-<a name="bytebase-v1-TaskRun-PriorBackupDetail"></a>--### TaskRun.PriorBackupDetail-Prior backup detail for rollback purposes.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| items | [TaskRun.PriorBackupDetail.Item](#bytebase-v1-TaskRun-PriorBackupDetail-Item) | repeated | The list of backed up tables. |-------<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item"></a>--### TaskRun.PriorBackupDetail.Item-A single backup table mapping.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| source_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The original table information. |-| target_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The target backup table information. |-| start_position | [Position](#bytebase-v1-Position) | | The start position in the SQL statement. |-| end_position | [Position](#bytebase-v1-Position) | | The end position in the SQL statement. |-------<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item-Table"></a>--### TaskRun.PriorBackupDetail.Item.Table-Table information.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The database information. Format: instances/{instance}/databases/{database} |-| schema | [string](#string) | | The schema name. |-| table | [string](#string) | | The table name. |------<a name="bytebase-v1-TaskRun-SchedulerInfo"></a>### TaskRun.SchedulerInfo@@ -9915,7 +9865,7 @@ Prior backup operation details.| ----- | ---- | ----- | ----------- || start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | When the backup started. || end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | When the backup ended. |-| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | The backup details. |+| prior_backup_detail | [TaskRunLogEntry.PriorBackup.PriorBackupDetail](#bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail) | | The backup details. || error | [string](#string) | | Error message if the backup failed. |@@ -9923,6 +9873,56 @@ Prior backup operation details.+<a name="bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail"></a>++### TaskRunLogEntry.PriorBackup.PriorBackupDetail+Prior backup detail for rollback purposes.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| items | [TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item](#bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail-Item) | repeated | The list of backed up tables. |+++++++<a name="bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail-Item"></a>++### TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item+A single backup table mapping.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| source_table | [TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail-Item-Table) | | The original table information. |+| target_table | [TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail-Item-Table) | | The target backup table information. |+| start_position | [Position](#bytebase-v1-Position) | | The start position in the SQL statement. |+| end_position | [Position](#bytebase-v1-Position) | | The end position in the SQL statement. |+++++++<a name="bytebase-v1-TaskRunLogEntry-PriorBackup-PriorBackupDetail-Item-Table"></a>++### TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table+Table information.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| database | [string](#string) | | The database information. Format: instances/{instance}/databases/{database} |+| schema | [string](#string) | | The schema name. |+| table | [string](#string) | | The table name. |++++++<a name="bytebase-v1-TaskRunLogEntry-ReleaseFileExecute"></a>### TaskRunLogEntry.ReleaseFileExecutediff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 76f84d1982..395223609c 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -2449,18 +2449,6 @@<a href="#bytebase.v1.TaskRun"><span class="badge">M</span>TaskRun</a></li>- <li>- <a href="#bytebase.v1.TaskRun.PriorBackupDetail"><span class="badge">M</span>TaskRun.PriorBackupDetail</a>- </li>-- <li>- <a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item"><span class="badge">M</span>TaskRun.PriorBackupDetail.Item</a>- </li>-- <li>- <a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table"><span class="badge">M</span>TaskRun.PriorBackupDetail.Item.Table</a>- </li>-<li><a href="#bytebase.v1.TaskRun.SchedulerInfo"><span class="badge">M</span>TaskRun.SchedulerInfo</a></li>@@ -2497,6 +2485,18 @@<a href="#bytebase.v1.TaskRunLogEntry.PriorBackup"><span class="badge">M</span>TaskRunLogEntry.PriorBackup</a></li>+ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail"><span class="badge">M</span>TaskRunLogEntry.PriorBackup.PriorBackupDetail</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item"><span class="badge">M</span>TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table"><span class="badge">M</span>TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</a>+ </li>+<li><a href="#bytebase.v1.TaskRunLogEntry.ReleaseFileExecute"><span class="badge">M</span>TaskRunLogEntry.ReleaseFileExecute</a></li>@@ -27240,10 +27240,12 @@ Detailed information about the task run result. </p></td></tr><tr>- <td>prior_backup_detail</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>+ <td>has_prior_backup</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The prior backup detail that will be used to rollback the task run. </p></td>+ <td><p>Indicates whether a prior backup was created for this task run.+When true, rollback SQL can be generated via PreviewTaskRunRollback.+Backup details are available in the task run logs. </p></td></tr><tr>@@ -27268,114 +27270,6 @@ This can only be set when creating the task run calling BatchRunTasks. </p></td>- <h3 id="bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</h3>- <p>Prior backup detail for rollback purposes.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>items</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</a></td>- <td>repeated</td>- <td><p>The list of backed up tables. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</h3>- <p>A single backup table mapping.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>source_table</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td>- <td></td>- <td><p>The original table information. </p></td>- </tr>-- <tr>- <td>target_table</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td>- <td></td>- <td><p>The target backup table information. </p></td>- </tr>-- <tr>- <td>start_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>- <td></td>- <td><p>The start position in the SQL statement. </p></td>- </tr>-- <tr>- <td>end_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>- <td></td>- <td><p>The end position in the SQL statement. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</h3>- <p>Table information.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database information.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The schema name. </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The table name. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</h3><p>Information about task run scheduling.</p>@@ -27758,7 +27652,7 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents<tr><td>prior_backup_detail</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail">TaskRunLogEntry.PriorBackup.PriorBackupDetail</a></td><td></td><td><p>The backup details. </p></td></tr>@@ -27777,6 +27671,114 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents+ <h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail">TaskRunLogEntry.PriorBackup.PriorBackupDetail</h3>+ <p>Prior backup detail for rollback purposes.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>items</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item</a></td>+ <td>repeated</td>+ <td><p>The list of backed up tables. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item</h3>+ <p>A single backup table mapping.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>source_table</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</a></td>+ <td></td>+ <td><p>The original table information. </p></td>+ </tr>++ <tr>+ <td>target_table</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</a></td>+ <td></td>+ <td><p>The target backup table information. </p></td>+ </tr>++ <tr>+ <td>start_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p>The start position in the SQL statement. </p></td>+ </tr>++ <tr>+ <td>end_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p>The end position in the SQL statement. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</h3>+ <p>Table information.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The database information.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>++ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The schema name. </p></td>+ </tr>++ <tr>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The table name. </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.v1.TaskRunLogEntry.ReleaseFileExecute">TaskRunLogEntry.ReleaseFileExecute</h3><p>Release file execution details.</p>diff --git a/proto/store/store/task_run.proto b/proto/store/store/task_run.protoindex 7b60624002..0b575f74a7 100644--- a/proto/store/store/task_run.proto+++ b/proto/store/store/task_run.proto@@ -3,7 +3,6 @@ syntax = "proto3";package bytebase.store;import "google/protobuf/timestamp.proto";-import "store/common.proto";option go_package = "generated-go/store";@@ -39,37 +38,10 @@ message TaskRunResult {// UID of the export archive generated for export tasks.int32 export_archive_uid = 5;- // Backup details that can be used to rollback changes.- PriorBackupDetail prior_backup_detail = 6;-}--// PriorBackupDetail contains information about automatic backups created before migration.-message PriorBackupDetail {- // Item represents a single backup operation for a table.- message Item {- // Table identifies a database table.- message Table {- // The database containing the table.- // Format: instances/{instance}/databases/{database}- string database = 1;- // Schema name (for databases that support schemas).- string schema = 2;- // Table name.- string table = 3;- }-- // The original table that was backed up.- Table source_table = 1;- // The backup table where data was copied.- Table target_table = 2;- // Starting position in SQL for this backup operation.- Position start_position = 3;- // Ending position in SQL for this backup operation.- Position end_position = 4;- }-- // List of backup operations performed.- repeated Item items = 1;+ // Indicates whether a prior backup was created for this task run.+ // When true, the task run can be rolled back using the backup tables.+ // Backup details are available in the task run logs (PRIOR_BACKUP log entries).+ bool has_prior_backup = 6;}// SchedulerInfo contains information about task scheduling and execution delays.diff --git a/proto/store/store/task_run_log.proto b/proto/store/store/task_run_log.protoindex 34cc8fada7..ff1896a9a9 100644--- a/proto/store/store/task_run_log.proto+++ b/proto/store/store/task_run_log.proto@@ -3,7 +3,6 @@ syntax = "proto3";package bytebase.store;import "store/common.proto";-import "store/task_run.proto";option go_package = "generated-go/store";@@ -107,3 +106,32 @@ message TaskRunLog {string file_path = 2;}}++// PriorBackupDetail contains information about automatic backups created before migration.+message PriorBackupDetail {+ // Item represents a single backup operation for a table.+ message Item {+ // Table identifies a database table.+ message Table {+ // The database containing the table.+ // Format: instances/{instance}/databases/{database}+ string database = 1;+ // Schema name (for databases that support schemas).+ string schema = 2;+ // Table name.+ string table = 3;+ }++ // The original table that was backed up.+ Table source_table = 1;+ // The backup table where data was copied.+ Table target_table = 2;+ // Starting position in SQL for this backup operation.+ Position start_position = 3;+ // Ending position in SQL for this backup operation.+ Position end_position = 4;+ }++ // List of backup operations performed.+ repeated Item items = 1;+}diff --git a/proto/v1/v1/rollout_service.proto b/proto/v1/v1/rollout_service.protoindex 13df03bb18..5c6c6d8a7e 100644--- a/proto/v1/v1/rollout_service.proto+++ b/proto/v1/v1/rollout_service.proto@@ -494,36 +494,10 @@ message TaskRun {// The export archive status for data export tasks.ExportArchiveStatus export_archive_status = 10;- // Prior backup detail for rollback purposes.- message PriorBackupDetail {- // A single backup table mapping.- message Item {- // Table information.- message Table {- // The database information.- // Format: instances/{instance}/databases/{database}- string database = 1;- // The schema name.- string schema = 2;- // The table name.- string table = 3;- }-- // The original table information.- Table source_table = 1;- // The target backup table information.- Table target_table = 2;- // The start position in the SQL statement.- Position start_position = 3;- // The end position in the SQL statement.- Position end_position = 4;- }-- // The list of backed up tables.- repeated Item items = 1;- }- // The prior backup detail that will be used to rollback the task run.- PriorBackupDetail prior_backup_detail = 11;+ // Indicates whether a prior backup was created for this task run.+ // When true, rollback SQL can be generated via PreviewTaskRunRollback.+ // Backup details are available in the task run logs.+ bool has_prior_backup = 11;// Information about task run scheduling.message SchedulerInfo {@@ -697,12 +671,41 @@ message TaskRunLogEntry {// Prior backup operation details.message PriorBackup {+ // Prior backup detail for rollback purposes.+ message PriorBackupDetail {+ // A single backup table mapping.+ message Item {+ // Table information.+ message Table {+ // The database information.+ // Format: instances/{instance}/databases/{database}+ string database = 1;+ // The schema name.+ string schema = 2;+ // The table name.+ string table = 3;+ }++ // The original table information.+ Table source_table = 1;+ // The target backup table information.+ Table target_table = 2;+ // The start position in the SQL statement.+ Position start_position = 3;+ // The end position in the SQL statement.+ Position end_position = 4;+ }++ // The list of backed up tables.+ repeated Item items = 1;+ }+// When the backup started.google.protobuf.Timestamp start_time = 1;// When the backup ended.google.protobuf.Timestamp end_time = 2;// The backup details.- TaskRun.PriorBackupDetail prior_backup_detail = 3;+ PriorBackupDetail prior_backup_detail = 3;// Error message if the backup failed.string error = 4;}