Skip to content

πŸ”„ v1.0.1: Enhanced Primary Key Support & Improved Schema Handling

Choose a tag to compare

@dayCod dayCod released this 21 Jan 06:26
· 7 commits to master since this release

Sketch v1.0.1

What's New

  • ✨ Added comprehensive primary key type support (ID, UUID, ULID)
  • πŸ”§ Enhanced relationship foreign key handling for various key types
  • πŸ“ Updated package description in composer.json

Changes

Primary Key Enhancements

  • Added support for ID, UUID, and ULID primary key types
  • Improved schema validation for primary key configurations
  • Updated blueprint generator to include key type options

Migration Generator Updates

  • Enhanced foreign key handling for different primary key types
  • Added automatic key type detection from relationships
  • Improved constraint generation based on key type

YAML Blueprint Improvements

Added keyType support in relationships:

relationships:
    - { 
        type: belongsTo,
        model: User,
        foreignKey: user_id,
        keyType: uuid # id, uuid and ulid
      }