Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove preUpdateBackup flag (#13126)

p0ny29e7d138003b
diff --git a/backend/api/v1/actuator_service.go b/backend/api/v1/actuator_service.go
index 62ba3c3d4e..fb774f854d 100644
--- a/backend/api/v1/actuator_service.go
+++ b/backend/api/v1/actuator_service.go
@@ -126,7 +126,7 @@ func (s *ActuatorService) getServerInfo(ctx context.Context) (*v1pb.ActuatorInfo
GitopsWebhookUrl: setting.GitopsWebhookUrl,
Debug: s.profile.RuntimeDebug.Load(),
Lsp: s.profile.Lsp,
- PreUpdateBackup: s.profile.PreUpdateBackup,
+ PreUpdateBackup: true,
UnlicensedFeatures: unlicensedFeaturesString,
}
diff --git a/backend/bin/server/cmd/profile.go b/backend/bin/server/cmd/profile.go
index bc6aacb558..30154034d9 100644
--- a/backend/bin/server/cmd/profile.go
+++ b/backend/bin/server/cmd/profile.go
@@ -33,6 +33,5 @@ func getBaseProfile(dataDir string) *config.Profile {
DeployID: uuid.NewString()[:8],
LastActiveTs: time.Now().Unix(),
Lsp: flags.lsp,
- PreUpdateBackup: flags.preUpdateBackup,
}
}
diff --git a/backend/bin/server/cmd/root.go b/backend/bin/server/cmd/root.go
index 98a3fb9808..4284fc5111 100644
--- a/backend/bin/server/cmd/root.go
+++ b/backend/bin/server/cmd/root.go
@@ -78,9 +78,8 @@ var (
// disableMetric is the flag to disable the metric collector.
disableMetric bool
// disableSample is the flag to disable the sample instance.
- disableSample bool
- lsp bool
- preUpdateBackup bool
+ disableSample bool
+ lsp bool
}
rootCmd = &cobra.Command{
@@ -123,7 +122,6 @@ func init() {
rootCmd.PersistentFlags().StringVar(&flags.demoName, "demo", "", "name of the demo to use. Empty means not running in demo mode.")
rootCmd.PersistentFlags().BoolVar(&flags.debug, "debug", false, "whether to enable debug level logging")
rootCmd.PersistentFlags().BoolVar(&flags.lsp, "lsp", true, "whether to enable lsp in SQL Editor")
- rootCmd.PersistentFlags().BoolVar(&flags.preUpdateBackup, "pre-update-backup", true, "whether to enable feature of data backup prior to data update")
rootCmd.PersistentFlags().BoolVar(&flags.disableMetric, "disable-metric", false, "disable the metric collector")
rootCmd.PersistentFlags().BoolVar(&flags.disableSample, "disable-sample", false, "disable the sample instance")
}
diff --git a/backend/component/config/profile.go b/backend/component/config/profile.go
index 20e4b0d23f..fc4db1b815 100644
--- a/backend/component/config/profile.go
+++ b/backend/component/config/profile.go
@@ -66,8 +66,7 @@ type Profile struct {
// Unique ID per Bytebase instance run.
DeployID string
- Lsp bool
- PreUpdateBackup bool
+ Lsp bool
// can be set in runtime
RuntimeDebug atomic.Bool