diff -r df44d7163582 -r e3994fcc21c3 hooks/syncschema.py --- a/hooks/syncschema.py Tue Sep 21 16:35:37 2010 +0200 +++ b/hooks/syncschema.py Thu Sep 23 23:28:58 2010 +0200 @@ -705,8 +705,9 @@ cols = ['%s%s' % (prefix, r.rtype.name) for r in self.entity.relations] dbhelper= session.pool.source('system').dbhelper - sql = dbhelper.sql_create_multicol_unique_index(table, cols) - session.system_sql(sql) + sqls = dbhelper.sqls_create_multicol_unique_index(table, cols) + for sql in sqls: + session.system_sql(sql) # XXX revertprecommit_event @@ -724,8 +725,9 @@ table = '%s%s' % (prefix, self.entity.type) dbhelper= session.pool.source('system').dbhelper cols = ['%s%s' % (prefix, c) for c in self.cols] - sql = dbhelper.sql_drop_multicol_unique_index(table, cols) - session.system_sql(sql) + sqls = dbhelper.sqls_drop_multicol_unique_index(table, cols) + for sql in sqls: + session.system_sql(sql) # XXX revertprecommit_event