Commit 2b7bc9d5 authored by sim's avatar sim

Alembic: a ReplaceableObject can be designated by its name

parent 6cb54246
......@@ -29,6 +29,8 @@ class ReversibleOp(MigrateOperation):
@classmethod
def invoke_for_target(cls, operations, target):
if isinstance(target, str):
target = cls._get_object_from_version(operations, target)
op = cls(target)
return operations.invoke(op)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment