Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Return FindBackupList in updated_ts descending order intead of created_ts
天舟3bdd0200d56c
diff --git a/api/backup.go b/api/backup.goindex 025e5eb093..be376b04d9 100644--- a/api/backup.go+++ b/api/backup.go@@ -202,7 +202,7 @@ type BackupSettingsMatch struct {type BackupService interface {CreateBackup(ctx context.Context, create *BackupCreate) (*Backup, error)FindBackup(ctx context.Context, find *BackupFind) (*Backup, error)- // Returns backup list in created_ts descending order.+ // Returns backup list in updated_ts descending order.FindBackupList(ctx context.Context, find *BackupFind) ([]*Backup, error)PatchBackup(ctx context.Context, patch *BackupPatch) (*Backup, error)FindBackupSetting(ctx context.Context, find *BackupSettingFind) (*BackupSetting, error)diff --git a/store/backup.go b/store/backup.goindex cc013ed448..ae9f874278 100644--- a/store/backup.go+++ b/store/backup.go@@ -195,7 +195,7 @@ func (s *BackupService) findBackupList(ctx context.Context, tx *Tx, find *api.Bapath,commentFROM backup- WHERE `+strings.Join(where, " AND ")+` ORDER BY created_ts DESC`,+ WHERE `+strings.Join(where, " AND ")+` ORDER BY updated_ts DESC`,args...,)if err != nil {