Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support fine-grained database schema migrations #11668

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 25, 2024

  1. Support fine-grained database schema migrations

    Backward-compatible schema changes (e.g. those that add tables or
    nullable columns) now no longer need a change to the global schema
    file (/nix/var/nix/db/schema). Thus, old Nix versions can continue to
    access the database.
    
    This is especially useful for schema changes required by experimental
    features. In particular, it replaces the ad-hoc handling of the schema
    changes for CA derivations (i.e. the file /nix/var/nix/db/ca-schema).
    
    Schema versions 8 and 10 could have been handled by this mechanism in
    a backward-compatible way as well.
    edolstra committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    27ea437 View commit details
    Browse the repository at this point in the history