Summary
Align database configuration environment variables with the DB module name.
The DB module is separate from the ORM module, but the migration CLI still primarily uses VIX_ORM_* variables.
Current behavior
The migrator and vix orm integration use variables such as:
VIX_ORM_HOST;
VIX_ORM_USER;
VIX_ORM_PASS;
VIX_ORM_DB;
VIX_ORM_DIR;
VIX_ORM_TOOL.
The tool lookup already recognizes VIX_DB_TOOL, but the remaining configuration remains ORM-prefixed.
Expected behavior
New DB-specific environment variables must be supported while legacy ORM variables continue to work for backward compatibility.
Scope
Suggested precedence
- Explicit CLI flag.
VIX_DB_* variable.
- Legacy
VIX_ORM_* variable.
- Default value.
Suggested files
modules/cli/src/commands/OrmCommand.cpp
modules/db/tools/migrator/MigratorCLI.cpp
modules/db/README.md
- CLI tests.
Acceptance criteria
Non-goals
This issue does not include:
- renaming
vix orm;
- removing legacy variables;
- changing
.env key names used by Config;
- ORM configuration.
Suggested labels
scope:db
scope:cli
type:dx
devx
good first issue
status:ready
Summary
Align database configuration environment variables with the DB module name.
The DB module is separate from the ORM module, but the migration CLI still primarily uses
VIX_ORM_*variables.Current behavior
The migrator and
vix ormintegration use variables such as:VIX_ORM_HOST;VIX_ORM_USER;VIX_ORM_PASS;VIX_ORM_DB;VIX_ORM_DIR;VIX_ORM_TOOL.The tool lookup already recognizes
VIX_DB_TOOL, but the remaining configuration remains ORM-prefixed.Expected behavior
New DB-specific environment variables must be supported while legacy ORM variables continue to work for backward compatibility.
Scope
VIX_DB_HOST.VIX_DB_USER.VIX_DB_PASSWORD.VIX_DB_NAME.VIX_DB_MIGRATIONS_DIR.VIX_DB_TOOL.Suggested precedence
VIX_DB_*variable.VIX_ORM_*variable.Suggested files
modules/cli/src/commands/OrmCommand.cppmodules/db/tools/migrator/MigratorCLI.cppmodules/db/README.mdAcceptance criteria
VIX_DB_*variables work.VIX_ORM_*variables still work.Non-goals
This issue does not include:
vix orm;.envkey names used byConfig;Suggested labels
scope:dbscope:clitype:dxdevxgood first issuestatus:ready