Skip to content

V2-04: Add forward-only v0.1 to v0.2 migrations and upgrade fixtures #11

Description

@DevFoundry-labs

Outcome

Prepare a forward-only migration path from v0.1 to v0.2 for secure intake, evidence schema v2, and retention/lifecycle operations.

Deliverables

  • Add 0002_webhook_intake.sql for webhook_deliveries.
  • Add 0003_evidence_v2.sql extending evidence_artifacts.
  • Add 0004_retention_operations.sql adding cases.retention_until, cases.retention_policy_id, and legal_holds.
  • Keep packaged and project-level migration copies aligned.
  • Add a real v0.1 fixture upgrade test.
  • Add clean-install and repeated-migration tests.
  • Preserve newer-schema rejection.
  • Document rollback boundaries; never edit migration 0001.

Acceptance criteria

  • A v0.1 fixture migrates with existing cases, evidence, and audit data intact.
  • Constraints, indexes, and foreign keys are validated.
  • Running migration twice is safe.
  • The built wheel contains all migrations.
  • Migrations introduce no plaintext secrets or private keys.
  • Migration field names and types are traceable to the approved V2 contracts.

Dependencies

Planning source

Derived from the local V2 planning package under .dev/v2/.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    operationsMigrations, backup, restore, metrics, or runtime operationssize:MMedium change with several acceptance pathsv2Planned for the v0.2.0 pilot-ready release

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions