mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
Demonstrates mymigrate with embedded SQL migrations: up, down, status, and reset commands. Two migrations (init + create-todos) show the minimum viable pattern for using sqlmigrate with MySQL/MariaDB. Verified against MariaDB 11.4.9 via sclient --alpn mysql.
17 lines
479 B
Modula-2
17 lines
479 B
Modula-2
module github.com/therootcompany/golib/database/sqlmigrate/mymigrate/examples/todos
|
|
|
|
go 1.26.1
|
|
|
|
require (
|
|
github.com/go-sql-driver/mysql v1.9.3
|
|
github.com/therootcompany/golib/database/sqlmigrate v1.0.0
|
|
github.com/therootcompany/golib/database/sqlmigrate/mymigrate v0.0.0
|
|
)
|
|
|
|
require filippo.io/edwards25519 v1.1.0 // indirect
|
|
|
|
replace (
|
|
github.com/therootcompany/golib/database/sqlmigrate => ../../..
|
|
github.com/therootcompany/golib/database/sqlmigrate/mymigrate => ../..
|
|
)
|