AJ ONeal 657b899f1a
fix(shmigrate): restore missing-file comment, remove || true from sync
- Add # ERROR: MISSING FILE comment in generated script when a
  migration file doesn't exist (feature-branch friendly: script
  still includes the command, user decides what to do)
- Remove || true from sync lines — if the log sync query fails,
  something is seriously wrong and the script should fail
2026-04-06 00:40:12 -06:00
..

sqlmigrate

Database-agnostic SQL migration library for Go.

Go Reference

Backend packages

Each backend is a separate Go module to avoid pulling unnecessary drivers:

Package Database Driver
pgmigrate PostgreSQL pgx/v5
mymigrate MySQL / MariaDB go-sql-driver/mysql
litemigrate SQLite database/sql (caller imports driver)
msmigrate SQL Server go-mssqldb
shmigrate Shell scripts (generates POSIX sh)

CLI

The sql-migrate CLI uses shmigrate to generate shell scripts for managing migrations without a Go dependency at runtime.