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.
3 lines
75 B
SQL
3 lines
75 B
SQL
DROP TABLE IF EXISTS todos;
|
|
DELETE FROM _migrations WHERE id = 'a1b2c3d4';
|