Skip to content

Releases: beesaferoot/gorm-migrate

v0.0.6

16 Feb 22:12

Choose a tag to compare

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

22 Oct 09:59

Choose a tag to compare

Full Changelog: v0.0.4...v0.0.5

Migrate the project name from gorm-schema to gorm-migrate.

v0.0.4

04 Aug 14:39
bd071d0

Choose a tag to compare

v0.0.4 Pre-release
Pre-release

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

Full Changelog: v0.0.3...v0.0.4

v0.0.3

26 Jun 00:00

Choose a tag to compare

v0.0.2

22 Jun 14:45

Choose a tag to compare

v0.0.1

22 Jun 13:50

Choose a tag to compare

v0.0.1 Pre-release
Pre-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.