feat
BREAKING
task/server-defaults-booleans-enums
#1 / 1
feat: add server_default to all boolean and string-enum columns
Every non-nullable column with a Python-side default now also has a server_default so raw SQL inserts (Alembic data migrations, scripts, bulk loads) produce a valid row without specifying the value.
Booleans (14): training_opt_out, is_verified (identity + domain), is_deleted, is_draft, active (webhook), success, is_active, is_stale, structurally_linked, since_start, return_is_any, auto_export, is_deprecated.
String enums (17): visibility (repo/mist/api_surface), identity_type, state (issue/proposal/review), channel, schema_version, status (job/task), severity, git_branch, permission, queue, version, viewer_type.
Alembic 0025 applies SET DEFAULT for each column.
TDD: 31 tests in test_server_defaults.py (all green).
sha256:c49918db02d13161fb5d8c8efb7bd91e5e56e470617cb278cd8af19a70c73458
sha
sha256:401df6ad1efb1a363b0ca9f7a602edd88ef0c62e8b7d5a181baf450a930c7cd6
snapshot
← Older
Oldest on task/server-defaults-booleans-enums
All commits
Newer →
Latest on task/server-defaults-booleans-enums
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:c49918db02d13161fb5d8c8efb7bd91e5e56e470617cb278cd8af19a70c73458 --body "your comment"
No comments yet. Be the first to start the discussion.