Set the migration directory and format in your project configuration. File paths below are relative to that directory.
| Format | Example migration | Order |
|---|---|---|
| golang-migrate | 0001_create_orders.up.sql | Numeric version |
| Flyway | V1__create_orders.sql | Numeric version; repeatables after versioned migrations |
| dbmate | 20261105090000_create_orders.sql | Numeric version |
| Prisma | 20261105090000_create_orders/migration.sql | Numeric version from the directory name |
| Atlas | 20261105090000_create_orders.sql | Numeric version |
| Plain SQL | 001_create_orders.sql | Lexical file path order |
golang-migrate
Forward migrations use <version>_<name>.up.sql. Matching .down.sql files are not classified as forward migrations. Place migration files directly inside the configured directory.
Flyway
Versioned SQL migrations use V<version>__<description>.sql. Repeatable migrations use R__<description>.sql and sort after versioned migrations, by description. Place these files directly inside the configured directory.
dbmate
Files use <version>_<name>.sql. Fronelta reads the up section for forward execution and honours dbmate's transaction directive. Place migration files directly inside the configured directory.
-- migrate:up
CREATE TABLE orders (id bigint PRIMARY KEY);
-- migrate:down
DROP TABLE orders;
Prisma
Each migration is a migration.sql file inside a directory named <timestamp>_<name>. Configure the parent directory containing those migration directories, rather than an individual migration folder.
Atlas
Versioned migration directories with an atlas.sum file use <version>_<name>.sql; detection picks Atlas when atlas.sum is present. Each file runs in its own transaction, as with Atlas's default --tx-mode file, unless it starts with -- atlas:txmode none. Place migration files directly inside the configured directory.
Existing -- atlas:nolint comments keep working, on a statement or at the top of a file followed by a blank line. They suppress only the Fronelta rules that check the same thing as the named Atlas analyzers or checks (all of those when none is named); checks without an equivalent are ignored. Findings measured during the rehearsal are never suppressed by an Atlas comment. Use -- fronelta:allow with a reason for anything else.
-- atlas:txmode none
-- atlas:nolint data_depend
CREATE UNIQUE INDEX CONCURRENTLY users_email_idx ON users (email);
Atlas checkpoint files are not supported yet: Fronelta replays every file in the directory.
Plain SQL
Fronelta recognises .sql files, including files in subdirectories, and orders them lexically by path. Files ending in .down.sql are excluded from forward migrations. Use consistent, zero-padded names when the order matters.
Return to the quickstart to connect your repository, or browse the rules reference for migration checks.