]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Column.copy() respects the value of "autoincrement",
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 May 2008 14:59:07 +0000 (14:59 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 May 2008 14:59:07 +0000 (14:59 +0000)
      fixes usage with Migrate [ticket:1021]

CHANGES
lib/sqlalchemy/schema.py

diff --git a/CHANGES b/CHANGES
index 989a960e491caffd4fdec527575b1ee83b4c4130..8e39524194ccf6917e85eb105f367b65177ad986 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -75,6 +75,9 @@ CHANGES
     - improved behavior of text() expressions when used as 
       FROM clauses, such as select().select_from(text("sometext"))
       [ticket:1014]
+
+    - Column.copy() respects the value of "autoincrement",
+      fixes usage with Migrate [ticket:1021]
       
 - engines
     - Pool listeners can now be provided as a dictionary of
index 22df6b41a5f479d30ee3a3ed855cb4e63a456e1a..6439d84412410eb76f3ff36b22feeb849cacf0ce 100644 (file)
@@ -634,7 +634,7 @@ class Column(SchemaItem, expression._ColumnClause):
         This is used in ``Table.tometadata``.
         """
 
-        return Column(self.name, self.type, self.default, key = self.key, primary_key = self.primary_key, nullable = self.nullable, _is_oid = self._is_oid, quote=self.quote, index=self.index, *[c.copy() for c in self.constraints])
+        return Column(self.name, self.type, self.default, key = self.key, primary_key = self.primary_key, nullable = self.nullable, _is_oid = self._is_oid, quote=self.quote, index=self.index, autoincrement=self.autoincrement, *[c.copy() for c in self.constraints])
 
     def _make_proxy(self, selectable, name = None):
         """Create a *proxy* for this column.