From f31c288b65281511338c518bdf7fbe78c985af58 Mon Sep 17 00:00:00 2001 From: jakeogh Date: Sat, 27 Jun 2015 08:40:44 +0000 Subject: add MINVALUE support to Sequence() --- lib/sqlalchemy/sql/compiler.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/sql/compiler.py') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index e9c3d0efa..b8cf32dff 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -2299,6 +2299,8 @@ class DDLCompiler(Compiled): text += " INCREMENT BY %d" % create.element.increment if create.element.start is not None: text += " START WITH %d" % create.element.start + if create.element.minvalue is not None: + text += " MINVALUE %d" % create.element.minvalue return text def visit_drop_sequence(self, drop): -- cgit v1.2.1