--- a/cubicweb/server/schema2sql.py Thu Jun 30 13:26:36 2016 +0200
+++ b/cubicweb/server/schema2sql.py Wed Jul 13 12:17:37 2016 +0200
@@ -153,8 +153,7 @@
for i in range(len(attrs)):
rschema, attrschema = attrs[i]
if attrschema is not None:
- sqltype = aschema2sql(dbhelper, eschema, rschema, attrschema,
- indent=' ')
+ sqltype = aschema2sql(dbhelper, eschema, rschema, attrschema)
else: # inline relation
sqltype = 'integer REFERENCES entities (eid)'
if i == len(attrs) - 1:
@@ -234,7 +233,7 @@
return None, None
-def aschema2sql(dbhelper, eschema, rschema, aschema, creating=True, indent=''):
+def aschema2sql(dbhelper, eschema, rschema, aschema, creating=True):
"""Return string containing a SQL table's column definition from attribute schema."""
attr = rschema.type
rdef = rschema.rdef(eschema.type, aschema.type)