summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-07-03 13:15:03 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-07-03 13:15:03 -0400
commit37ec812056e039027e95f0cf7f2588eb305f2bf7 (patch)
treec77e94617e90a8ebeb3cb6b8b4cd1c6325943efa
parent0e43247da4cfd2d829ee4b350e336364cb8a7ec1 (diff)
downloadalembic-37ec812056e039027e95f0cf7f2588eb305f2bf7.tar.gz
- add the .info dictionary, references #302
-rw-r--r--alembic/operations/ops.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py
index 1a38d07..2cdf7ad 100644
--- a/alembic/operations/ops.py
+++ b/alembic/operations/ops.py
@@ -22,6 +22,14 @@ class MigrateOperation(object):
"""
+ @util.memoized_property
+ def info(self):
+ """A dictionary that may be used to store arbitrary information
+ along with this :class:`.MigrateOperation` object.
+
+ """
+ return {}
+
class AddConstraintOp(MigrateOperation):
"""Represent an add constraint operation."""