Return the rev_id (contained within a namedtuple) from command.revision
Robbie Coomber
Branch: Deleted repository:master
Branch: zzzeek/alembic:master
Declined
Declined pull request
OK I merged you in on ecb0ede7e3c25b6492 and rebased out the reverted commit, so you're in. Just have to decline the actual pullreq, but it's in. Thanks!
Closed by: Mike Bayer·2014-02-17
Hi, I'm trying to use alembic.command.revision in a script. Currently it's awkward to get the rev_id of the created revision. Returning an object that contains it (here I've used a namedtuple for simplicity) does the right thing, what do you think?