Skip to content

v0.0.1

Pre-release
Pre-release

Choose a tag to compare

@beesaferoot beesaferoot released this 22 Jun 13:50
· 32 commits to main since this release

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 environment
  • create - Create new migration files
  • generate - Generate migrations from model changes
  • up - Apply pending migrations
  • down - Rollback migrations
  • status - Check migration status
  • history - View migration history
  • validate - 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.Index type mismatch in migration diff generation

Note: This is an early development release. API may change significantly in future versions.