~olly/yoyo#69: 
logging step with friendly descriptive message

while yoyo doing migrations, it outputs the following log message:

INFO:yoyo.migrations: - applying step 0
INFO:yoyo.migrations: - applying step 1
INFO:yoyo.migrations: - applying step 2
INFO:yoyo.migrations: - applying step 3

It would be better to add some descriptive message, for example:

INFO:yoyo.migrations: - applying step 0: create table foo
INFO:yoyo.migrations: - applying step 1: migrate data from bar to foo
INFO:yoyo.migrations: - applying step 2: create triggers
INFO:yoyo.migrations: - applying step 3: drop table bar

This requires the step decorator supports a new argument, for example:

step('create table public.foo (id int, name varchar)', title='create table foo')
Status
REPORTED
Submitter
~yyscamper
Assigned to
No-one
Submitted
4 years ago
Updated
4 years ago
Labels
No labels applied.