REA Flyway SQL notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Flyway versioned SQL migrations and flyway.conf / Spring Flyway properties pin schema-migration identity. In REA 6.7.x, treat selected locations / V__ / R__ pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the Flyway tree (+ SQL artifacts you hold).
  2. Quote selected locations / version prefixes / placeholders you actually see (never paste JDBC secrets).
  3. Cousins → prisma-schema · drizzle-config · sqlite-notes.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_flyway_sql API REA never called.

Minimal path

# authorized db/migration/V__*.sql / flyway.conf (+ artifact you hold)
# quote selected locations / version filenames / placeholders into case notes
# cousins → peer Prisma / Drizzle / SQLite lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_flyway_sql .

Compare

ArtifactHonest posture
Flyway SQL / flyway.confSchema-migration identity facts
Prisma peerrea-prisma-schema
Drizzle peerrea-drizzle-config
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote flyway.locations, the highest V__ version you saw, and whether repeatable R__ scripts exist.
  • Prefer filename + checksum notes over pasting entire DDL into public binders.
  • Redact JDBC URLs, user/password, and placeholder values that embed secrets.
  • Compiled migration jars or SQL archives are build outputs — stay on documented package/archive routes.
  • Keep Flyway versioned SQL distinct from Prisma/Drizzle ORM schemas even when they target the same database.

Scope we will not cover

  • No inventing inspect_flyway_sql / automatic migrate against foreign databases.
  • No credential theft from JDBC or placeholder secrets.
  • No pirate redistribution of proprietary migration SQL.
  • No crack framing via Flyway pins.
  • No bypass cookbooks that skip checksum validation to attack foreign schemas.

Honest limits

RepoRead documents config literacy — how authorized Flyway trees relate to Evidence — not a full Flyway Teams course. Prefer upstream Flyway docs for callbacks and repair. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-prisma-schema / rea-drizzle-config?

rea-prisma-schema covers Prisma ORM schemas; rea-drizzle-config covers Drizzle Kit. This page zooms on Flyway versioned SQL identity — it does not overwrite those pages.

Is there inspect_flyway_sql in 6.7.0?

Not assumed. Quote locations / V__ / R__ / flyway.conf pins you actually open, then use documented package/archive lanes. Do not invent inspect_flyway_sql.

Does REA run Flyway migrate or steal JDBC credentials?

No. Local trees only. Redact JDBC URLs and passwords; do not treat REA as Flyway CLI. No credential theft.

How should I label Evidence vs other ORM/migration configs?

Label Evidence by the file present. Keep Flyway separate from rea-prisma-schema, rea-drizzle-config, and rea-sqlite-notes.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources