Skip to content

v0.5.0

Choose a tag to compare

@lukeed lukeed released this 16 Mar 20:35
· 47 commits to master since this release

Features

  • Added new CLI command and Programmatic export (#2): cf9746b

    Using the command line, this is now possible on Linux, OSX, and Windows:

    # Sequential
    $ ley new users  #=> migrations/00000-users.js
    $ ley new teams  #=> migrations/00001-teams.js
    
    # Timestamp
    $ ley new users --timestamp #=> migrations/1584389617-users.js
    $ ley new teams --timestamp #=> migrations/1584389631-teams.js
    
    # Customize Filename / Extension
    $ ley new users.ts #=> migrations/#####-users.ts
    $ ley new create-teams #=> migrations/#####-create-teams.js
    $ ley new "alter admin users" #=> migrations/#####-alter-admin-users.js
    
    # Modify Prefix Length (non-timestamp only)
    $ ley new users.ts --length 3 #=> migrations/###-users.ts
    

Patches

  • Fix filename sorting for numeric/"natural" sorting: 529b2df
    Affects 001.js vs 00002.js – was ['00002.js', '001.js'] now ['001.js', '00002.js']