Releases: beesaferoot/gorm-migrate
Releases · beesaferoot/gorm-migrate
v0.0.6
Full Changelog: v0.0.5...v0.0.
improv: enhance migration generator to create schemas, sanitize constraint names, deduplicate index fields, and ensure deterministic migration timestamps. @beesaferoot
v0.0.5
Full Changelog: v0.0.4...v0.0.5
Migrate the project name from gorm-schema to gorm-migrate.
v0.0.4
What's Changed
- feat: Add register command for auto-generating model registry by @DivineUX23 in #1
- Feat: Add support for indexes and foreign key changes by @beesaferoot in #2
New Contributors
- @DivineUX23 made their first contribution in #1
- @beesaferoot made their first contribution in #2
Full Changelog: v0.0.3...v0.0.4
v0.0.3
v0.0.2
Full Changelog: v0.0.1...v0.0.2
Commits:
v0.0.1
Release v0.0.1
🚨 Pre-release Warning
This is a pre-release version and is not ready for production use. This release is intended for early testing and development purposes only.
✨ Basic Functionality
Core Features
- Schema Comparison: Compare GORM model schemas with existing database schemas
- Migration Generation: Generate SQL migration files from schema differences
- Multi-Database Support: PostgreSQL and SQLite support
- Model Registry: Centralized model management for migration workflows
CLI Commands
init- Initialize migration environmentcreate- Create new migration filesgenerate- Generate migrations from model changesup- Apply pending migrationsdown- Rollback migrationsstatus- Check migration statushistory- View migration historyvalidate- Validate migration files
🔧 Installation
go get github.com/beesaferoot/gorm-schema@v0.0.1⚠️ Known Limitations
- Limited database dialect support (PostgreSQL, SQLite only)
- Basic index and foreign key handling
- No transaction support in migrations
- Schema comparison may not handle all edge cases
🐛 Bug Fixes
- Fixed
schema.Indextype mismatch in migration diff generation
Note: This is an early development release. API may change significantly in future versions.