Skip to content
  • Michele Andreoli's avatar
    2003b7bc
    feat(db): add Knex migration scaffolding and require migrations for schema changes · 2003b7bc
    Michele Andreoli authored
    
    
    Knex was already a dependency but used only as a query builder: no knexfile,
    no migration scripts, and no rule stating that schema changes must go through
    migrations - unlike the Python template, which has a complete Alembic setup.
    
    - knexfile.ts reading the same DB_* env vars as DatabaseService
    - migrate:make / migrate:latest / migrate:rollback / migrate:status scripts
    - inert .ts.example migration as a reference (never loaded, built or linted)
    - exclude migrations from jest coverage collection
    - document the mandate in the base steering and in the README
    
    Co-Authored-By: default avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    2003b7bc
    feat(db): add Knex migration scaffolding and require migrations for schema changes
    Michele Andreoli authored
    
    
    Knex was already a dependency but used only as a query builder: no knexfile,
    no migration scripts, and no rule stating that schema changes must go through
    migrations - unlike the Python template, which has a complete Alembic setup.
    
    - knexfile.ts reading the same DB_* env vars as DatabaseService
    - migrate:make / migrate:latest / migrate:rollback / migrate:status scripts
    - inert .ts.example migration as a reference (never loaded, built or linted)
    - exclude migrations from jest coverage collection
    - document the mandate in the base steering and in the README
    
    Co-Authored-By: default avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
Loading