Skip to content

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

chore: make declarative flag as experimental (#17252)

p0nyac2f1c28372f
diff --git a/action/README.md b/action/README.md
index 4c4478b7b2..617d54d488 100644
--- a/action/README.md
+++ b/action/README.md
@@ -72,7 +72,7 @@ These flags apply to the main `bytebase-action` command and its subcommands (`ch
- **DML**: Data manipulation files with base filename ending with `dml` (e.g., `v1.0_insert_data_dml.sql`)
- **DDL Ghost**: Schema changes using gh-ost with base filename ending with `ghost` (e.g., `v1.0_alter_table_ghost.sql`)
-- **`--declarative`**: Use declarative mode for SQL schema management instead of versioned migrations.
+- **`--declarative`** (experimental): Use declarative mode for SQL schema management instead of versioned migrations.
- Treats SQL files as desired state definitions rather than incremental changes
- Allows organizing schema across multiple files (e.g., `tables.sql`, `views.sql`)
- Versions are auto-generated using timestamp format `YYYYMMDD.HHMMSS`
@@ -110,4 +110,4 @@ These flags are specific to the `rollout` subcommand (`bytebase-action rollout`)
- **`--plan`**: The specific plan to rollout.
- Format: `projects/{project}/plans/{plan}`
- - If specified, this shadows the `--file-pattern` and `--targets` flags, meaning they will be ignored.
\ No newline at end of file
+ - If specified, this shadows the `--file-pattern` and `--targets` flags, meaning they will be ignored.
diff --git a/action/command/root.go b/action/command/root.go
index aff69a27ea..3a1693154d 100644
--- a/action/command/root.go
+++ b/action/command/root.go
@@ -32,7 +32,7 @@ func NewRootCommand(w *world.World) *cobra.Command {
cmd.PersistentFlags().StringVar(&w.Project, "project", "projects/hr", "Bytebase project")
cmd.PersistentFlags().StringSliceVar(&w.Targets, "targets", []string{"instances/test-sample-instance/databases/hr_test", "instances/prod-sample-instance/databases/hr_prod"}, "Bytebase targets. Either one or more databases or a single databaseGroup")
cmd.PersistentFlags().StringVar(&w.FilePattern, "file-pattern", "", "File pattern to glob migration files")
- cmd.PersistentFlags().BoolVar(&w.Declarative, "declarative", false, "Whether to use declarative mode.")
+ cmd.PersistentFlags().BoolVar(&w.Declarative, "declarative", false, "Whether to use declarative mode. (experimental)")
cmd.AddCommand(NewCheckCommand(w))
cmd.AddCommand(NewRolloutCommand(w))