Skip to content

Commit 5defbea

Browse files
refactor: rename database.schema_prefix to database.project_prefix
Avoid confusion with store's schema_prefix (schema-addressed storage paths). The database setting is for project organization, not storage addressing. - database.project_prefix: Project-level prefix for schema names - store schema_prefix: Path prefix for schema-addressed storage (unchanged) Environment variable: DJ_PROJECT_PREFIX (was DJ_SCHEMA_PREFIX) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a8a1814 commit 5defbea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/datajoint/settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"database.user": "DJ_USER",
6161
"database.password": "DJ_PASS",
6262
"database.port": "DJ_PORT",
63-
"database.schema_prefix": "DJ_SCHEMA_PREFIX",
63+
"database.project_prefix": "DJ_PROJECT_PREFIX",
6464
"database.create_tables": "DJ_CREATE_TABLES",
6565
"loglevel": "DJ_LOG_LEVEL",
6666
}
@@ -187,11 +187,11 @@ class DatabaseSettings(BaseSettings):
187187
port: int = Field(default=3306, validation_alias="DJ_PORT")
188188
reconnect: bool = True
189189
use_tls: bool | None = None
190-
schema_prefix: str = Field(
190+
project_prefix: str = Field(
191191
default="",
192-
validation_alias="DJ_SCHEMA_PREFIX",
192+
validation_alias="DJ_PROJECT_PREFIX",
193193
description="Project-specific prefix for schema names. "
194-
"Not automatically applied; use dj.config.database.schema_prefix when creating schemas.",
194+
"Not automatically applied; use dj.config.database.project_prefix when creating schemas.",
195195
)
196196
create_tables: bool = Field(
197197
default=True,

0 commit comments

Comments
 (0)