Skip to content
CAI
Software that uses CAICheck a score

nafg/slick-migration-api

51.6

Adequate · 7 November 2026

949

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added configuration for Oracle database support in test kit

The test kit now includes configuration files (testkit.conf, testkit-gitlab.conf, testkit-github.conf) that define connection settings for PostgreSQL, MySQL, and Oracle databases. Specifically, Oracle support has been added with connection details, driver class, and database creation/drop scripts, although it is disabled by default in the GitLab configuration.

test-dbs · high confidence

Behavioural changes

Revised migration API with new DSL and dialect abstraction

The migration API has been restructured to use a new, more composable DSL. The previous \MigrationApi\ trait and its internal \Dialect\/\HasDialect\ mechanism have been removed and replaced with a top-level \Dialect\ typeclass and a new \AstHelpers\ trait for extracting schema information. The core migration logic now lives in \TableMigration\, which exposes methods like \create\, \drop\, \rename\, \addColumns\, and \dropColumns\ that build a sequence of actions. These actions are converted to SQL via the \Dialect\ instance. The API now supports reversible migrations natively through \ReversibleMigration\ and \ReversibleMigrationSeq\, allowing users to combine migrations with \&\ and automatically get a reverse sequence if all components are reversible. A new \AddColumnWithInitialValue\ object provides deprecated wrappers for adding columns with initial values, while \SqlMigration\ remains for raw SQL execution.

src/main · high confidence

Test coverage

Comprehensive test suite for Slick migration API

Added a robust test infrastructure for the Slick migration API, including a base \DbTest\ class that supports multiple database profiles (H2, Hsqldb, SQLite, Derby, MySQL, Postgres, and Oracle). The new tests verify core migration operations such as creating and dropping tables, adding/dropping columns and indexes, and handling auto-incrementing columns. Additional test files cover generic dialect detection for custom drivers, the type-safe composition of migration sequences (\MigrationSeq\), and compile-time enforcement of reversible versus irreversible table migrations.

src/test · high confidence

Dependencies

Upgrade to Slick 3.6.1 and Scala 3.3.8 support

The project has been upgraded from Slick 2.0.0-M1 to Slick 3.6.1, bringing significant API and performance improvements for database migrations. The build now supports Scala 2.12.21, 2.13.18, and 3.3.8, with Scala 3.3.8 as the default version. Test dependencies have been updated to include ScalaTest 3.2.20, H2 2.3.232, SQLite JDBC 3.53.4.0, Derby 10.15.2.0, HSQLDB 2.7.4, PostgreSQL 42.7.13, MySQL Connector/J 26.7.0, and SLF4J Simple 2.0.20. Compiler options have been enhanced with -feature, -deprecation, and -Xsource:3 flags to ensure better compatibility and code quality.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 50 → 52 (+1.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 52 → 52 (+0.0)
  • Readiness 38 → 40 (+2.3)
  • Security 73 → 73 (+0.0)

Resolved (2)

  • Workflow token permissions not restricted (.github/workflows/ci.yml)
  • Workflow token permissions not restricted (.github/workflows/clean.yml)

New (1)

  • Workflow holding a long-lived secret is unscoped (.github/workflows/ci.yml)

Changes since last survey

  • 20 commits — 20 feature/other, 0 fixes

By area

  • (root) — 8 commits
  • (repo) — 7 commits
  • .github/workflows — 2 commits
  • project/build.properties — 2 commits
  • src/test — 1 commit

Notable commits

  • change: Expect NoAction foreign key rules from H2 2.5
  • change: Merge pull request #514 from scala-steward/update/scala3-library-3.9.0
  • change: Merge pull request #518 from scala-steward/update/h2-2.5.252
  • change: Merge pull request #523 from scala-steward/update/sbt-2.0.11
  • change: Merge pull request #525 from nafg/bb/drop-sbt-coveralls-ahead-of-sbt-2-thr_ipj9bphtbr
  • change: Merge pull request #526 from nafg/scala3-ci-wildcard
  • change: Merge pull request #529 from scala-steward/update/sbt-2.0.12
  • change: Merge pull request #530 from scala-steward/update/sqlite-jdbc-3.54.1.0
  • change: Name the Scala 3 CI job 3.x instead of 3.<minor>.x
  • change: Pass the GitHub testkit config as a workflow-wide env var
  • change: Port the build to sbt 2
  • change: Regenerate GitHub Actions workflows
  • change: Regenerate GitHub Actions workflows
  • change: Regenerate ci.yml and .mergify.yml
  • change: Remove sbt-coveralls and the Coveralls badge
  • change: Update h2 to 2.5.252
  • change: Update sbt to 2.0.11
  • change: Update sbt to 2.0.12
  • change: Update scala3-library to 3.9.0
  • change: Update sqlite-jdbc to 3.54.1.0

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

nafg/slick-migration-api was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 0fedd03115cfec847ad7122f4d802366a737604a — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-110e4fee044f.