gen:migration & rem:migration
Create or remove versioned SQL migration files with Atlas.
goforge gen:migration [name]
Requires atlas on PATH.
- Runs
atlas migrate diff --env gorm --config file://core/database/atlas.hcl <name>to generate a new.sqlfile ininternal/database/migrations/. - Strips backticks (
`) andCOLLATE ...clauses for cross-driver cleanliness. - Recomputes
atlas.sumviaatlas migrate hash.
bash
goforge gen:migration create_tasks_tablegoforge rem:migration
Deletes Latest Migration File Only
goforge rem:migration sorts internal/database/migrations/*.sql lexicographically, deletes the latest .sql file, and re-hashes atlas.sum. It does not execute a SQL DOWN rollback against already-applied database tables.
