mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-25 13:18:00 +00:00
Factor the inline migration logic from cmd/sql-migrate into reusable packages: database/sqlmigrate (core types, matching, file collection) and database/sqlmigrate/shmigrate (shell script generation backend). No behavior changes — the CLI produces identical output. The shmigrate package implements the sqlmigrate.Migrator interface so other backends (pgmigrate, mymigrate, etc.) can follow the same pattern.
14 lines
409 B
Modula-2
14 lines
409 B
Modula-2
module github.com/therootcompany/golib/cmd/sql-migrate/v2
|
|
|
|
go 1.26.1
|
|
|
|
require (
|
|
github.com/therootcompany/golib/database/sqlmigrate v0.0.0
|
|
github.com/therootcompany/golib/database/sqlmigrate/shmigrate v0.0.0
|
|
)
|
|
|
|
replace (
|
|
github.com/therootcompany/golib/database/sqlmigrate => ../../database/sqlmigrate
|
|
github.com/therootcompany/golib/database/sqlmigrate/shmigrate => ../../database/sqlmigrate/shmigrate
|
|
)
|