Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: extend storage_backend to S3, GCS, OSS (#723)
tianzhou496c5eacd090
diff --git a/api/backup.go b/api/backup.goindex a2c807cf2a..a6e6329b78 100644--- a/api/backup.go+++ b/api/backup.go@@ -56,12 +56,24 @@ type BackupStorageBackend stringconst (// BackupStorageBackendLocal is the local storage backend for a backup.BackupStorageBackendLocal BackupStorageBackend = "LOCAL"+ // BackupStorageBackendS3 is the AWS S3 storage backend for a backup. Not used yet.+ BackupStorageBackendS3 BackupStorageBackend = "S3"+ // BackupStorageBackendGCS is the Google Cloud Storage (GCS) storage backend for a backup. Not used yet.+ BackupStorageBackendGCS BackupStorageBackend = "GCS"+ // BackupStorageBackendOSS is the AliCloud Object Storage Service (OSS) storage backend for a backup. Not used yet.+ BackupStorageBackendOSS BackupStorageBackend = "OSS")func (e BackupStorageBackend) String() string {switch e {case BackupStorageBackendLocal:return "LOCAL"+ case BackupStorageBackendS3:+ return "S3"+ case BackupStorageBackendGCS:+ return "GCS"+ case BackupStorageBackendOSS:+ return "OSS"}return "UNKNOWN"}diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sqlindex 28d695602e..a70ce38895 100644--- a/store/migration/10001__init_schema.sql+++ b/store/migration/10001__init_schema.sql@@ -510,7 +510,7 @@ CREATE TABLE backup (name TEXT NOT NULL,status TEXT NOT NULL CHECK (status IN ('PENDING_CREATE', 'DONE', 'FAILED')),type TEXT NOT NULL CHECK (type IN ('MANUAL', 'AUTOMATIC')),- storage_backend TEXT NOT NULL CHECK (storage_backend IN ('LOCAL')),+ storage_backend TEXT NOT NULL CHECK (storage_backend IN ('LOCAL', "S3", "GCS", "OSS")),migration_history_version TEXT NOT NULL,path TEXT NOT NULL,comment TEXT NOT NULL DEFAULT ''