joy-framework / joy

A full stack web framework written in janet

Home Page:https://joy.swlkr.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usability / Docs: joy create migration does not create an empty migration

LeviSchuck opened this issue · comments

commented

While reading the docs https://github.com/joy-framework/joy/blob/master/docs/database-migrations.md , I would have expected

joy create migration

to create an empty migration with a default name and have -- up and -- down sections

OR

An error message saying a name is needed.

Instead, no file is created and no error is produced.

The correct use would be

joy create migration name-here

The docs should be updated, and it would be nice if joy create migration gave either a generated new migration or an error message.

commented

I changed joy to create a migration with just a timestamp when given no name here: afdf96c