mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
Add ID field to Migration (parsed from INSERT INTO _migrations in Collect), AppliedMigration type with ID+Name, and update Migrator.Applied() to return []AppliedMigration across all 5 backends. Matching in Up/Down/GetStatus now checks both name and ID, so renamed migration files are still recognized as applied if the 8-char hex ID matches.
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%