summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel <g2p.code+sqla@gmail.com>2011-07-05 19:57:27 +0200
committerGabriel <g2p.code+sqla@gmail.com>2011-07-05 19:57:27 +0200
commit15f571d2965041827a60226b849b553bd9a14ee2 (patch)
treeb3d8107bc593c420ccd1e86c3209959a9ad94535
parent15911e6bfe40cc6511de2c1bf386f696504f42eb (diff)
downloadsqalchemy-migrate-15f571d2965041827a60226b849b553bd9a14ee2.tar.gz
Put constraints (positional) before args (keywords).
-rw-r--r--migrate/versioning/genmodel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/migrate/versioning/genmodel.py b/migrate/versioning/genmodel.py
index cfe9996..06d3175 100644
--- a/migrate/versioning/genmodel.py
+++ b/migrate/versioning/genmodel.py
@@ -88,7 +88,7 @@ class ModelGenerator(object):
data = {
'name': name,
- 'commonStuff': ', '.join([type_repr] + args + constraints),
+ 'commonStuff': ', '.join([type_repr] + constraints + args),
}
if self.declarative: