Commit 498d6486 authored by Sebastien Robin's avatar Sebastien Robin

upgrader: make sure to return a result only if there is problems

parent 73b4408d
......@@ -56,7 +56,11 @@ If `fixit` is True, then it will create/drop table or alter existing tables\n
"""\n
portal = context.getPortalObject()\n
show_source = not(fixit)\n
return [portal.portal_catalog.upgradeSchema(src__=show_source)]\n
sql_src = portal.portal_catalog.upgradeSchema(src__=show_source)\n
result = []\n
if sql_src:\n
result.append(sql_src)\n
return result\n
</string> </value>
</item>
<item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment