]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- add the .info dictionary, references #302
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jul 2015 17:15:03 +0000 (13:15 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jul 2015 17:15:03 +0000 (13:15 -0400)
alembic/operations/ops.py

index 1a38d074bdaa6925b027f130af391ad9ab95ed9d..2cdf7adbf300ac4ad7b5c131ef752f267d654cad 100644 (file)
@@ -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."""