Return the rev_id (contained within a namedtuple) from command.revision

Declined
#20 · Created  · Last updated

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: ·2014-02-17

Description

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?

0 attachments

0 comments

Loading commits...