From aa78c4c20cb21ccfe4d59428bc87af1b7581a49d Mon Sep 17 00:00:00 2001 From: Dimitri Yatsenko Date: Tue, 27 Jan 2026 11:12:15 -0600 Subject: [PATCH 1/2] refactor: rename database.schema_prefix to database.database_prefix Avoid confusion with store's schema_prefix (schema-addressed storage paths). - database.database_prefix: Prefix for database/schema names - store schema_prefix: Path prefix for schema-addressed storage (unchanged) Works for both MySQL (schema=database) and PostgreSQL (separate databases). Environment variable: DJ_DATABASE_PREFIX (was DJ_SCHEMA_PREFIX) Co-Authored-By: Claude Opus 4.5 --- src/datajoint/settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/datajoint/settings.py b/src/datajoint/settings.py index be06673f3..0338555ed 100644 --- a/src/datajoint/settings.py +++ b/src/datajoint/settings.py @@ -60,7 +60,7 @@ "database.user": "DJ_USER", "database.password": "DJ_PASS", "database.port": "DJ_PORT", - "database.schema_prefix": "DJ_SCHEMA_PREFIX", + "database.database_prefix": "DJ_DATABASE_PREFIX", "database.create_tables": "DJ_CREATE_TABLES", "loglevel": "DJ_LOG_LEVEL", } @@ -187,11 +187,11 @@ class DatabaseSettings(BaseSettings): port: int = Field(default=3306, validation_alias="DJ_PORT") reconnect: bool = True use_tls: bool | None = None - schema_prefix: str = Field( + database_prefix: str = Field( default="", - validation_alias="DJ_SCHEMA_PREFIX", - description="Project-specific prefix for schema names. " - "Not automatically applied; use dj.config.database.schema_prefix when creating schemas.", + validation_alias="DJ_DATABASE_PREFIX", + description="Prefix for database/schema names. " + "Not automatically applied; use dj.config.database.database_prefix when creating schemas.", ) create_tables: bool = Field( default=True, From 35ff7dfe07ec0037ad82cd867953f069269d32f3 Mon Sep 17 00:00:00 2001 From: Dimitri Yatsenko Date: Tue, 27 Jan 2026 11:13:36 -0600 Subject: [PATCH 2/2] chore: bump version to 2.0.0a25 --- src/datajoint/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datajoint/version.py b/src/datajoint/version.py index c3800af52..068e6fe5c 100644 --- a/src/datajoint/version.py +++ b/src/datajoint/version.py @@ -1,4 +1,4 @@ # version bump auto managed by Github Actions: # label_prs.yaml(prep), release.yaml(bump), post_release.yaml(edit) # manually set this version will be eventually overwritten by the above actions -__version__ = "2.0.0a24" +__version__ = "2.0.0a25"