]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- version specs for new Sequence arguments
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Jul 2015 14:11:29 +0000 (10:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Jul 2015 14:11:29 +0000 (10:11 -0400)
- changelog for pullreq github:186

doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/schema.py

index b5372be6833f530083712e41d54742e5c1183286..4a6b8a245ad48309a6b15afbb7a33fb7e0153c95 100644 (file)
 .. changelog::
     :version: 1.0.7
 
+    .. change::
+        :tags: feature, schema
+        :pullreq: github:186
+
+        Added support for the MINVALUE, MAXVALUE, NO MINVALUE, NO MAXVALUE,
+        and CYCLE arguments for CREATE SEQUENCE as supported by Postgresql
+        and Oracle.  Pull request courtesy jakeogh.
+
     .. change::
         :tags: bug, orm, declarative
         :tickets: 3480
index ecfa5767630a6ac6fc26c353c5586bfd0bcf357e..137208584e71ba82a1a94e4c369c31fff777429e 100644 (file)
@@ -2064,24 +2064,36 @@ class Sequence(DefaultGenerator):
          the clause is omitted, which on most platforms indicates a
          minvalue of 1 and -2^63-1 for ascending and descending sequences,
          respectively.
+
+         .. versionadded:: 1.0.7
+
         :param maxvalue: the maximum value of the sequence.  This
          value is used when the CREATE SEQUENCE command is emitted to
          the database as the value of the "MAXVALUE" clause.  If ``None``,
          the clause is omitted, which on most platforms indicates a
          maxvalue of 2^63-1 and -1 for ascending and descending sequences,
          respectively.
+
+         .. versionadded:: 1.0.7
+
         :param nominvalue: no minimum value of the sequence.  This
          value is used when the CREATE SEQUENCE command is emitted to
          the database as the value of the "NO MINVALUE" clause.  If ``None``,
          the clause is omitted, which on most platforms indicates a
          minvalue of 1 and -2^63-1 for ascending and descending sequences,
          respectively.
+
+         .. versionadded:: 1.0.7
+
         :param nomaxvalue: no maximum value of the sequence.  This
          value is used when the CREATE SEQUENCE command is emitted to
          the database as the value of the "NO MAXVALUE" clause.  If ``None``,
          the clause is omitted, which on most platforms indicates a
          maxvalue of 2^63-1 and -1 for ascending and descending sequences,
          respectively.
+
+         .. versionadded:: 1.0.7
+
         :param cycle: allows the sequence to wrap around when the maxvalue
          or minvalue has been reached by an ascending or descending sequence
          respectively.  This value is used when the CREATE SEQUENCE command
@@ -2090,6 +2102,9 @@ class Sequence(DefaultGenerator):
          respectively.  If cycle=False (the default) any calls to nextval
          after the sequence has reached its maximum value will return an
          error.
+
+         .. versionadded:: 1.0.7
+
         :param schema: Optional schema name for the sequence, if located
          in a schema other than the default.
         :param optional: boolean value, when ``True``, indicates that this