diff -r 08dc10ef9ab1 -r ecbfec2da8a2 misc/migration/3.18.0_Any.py --- a/misc/migration/3.18.0_Any.py Fri Sep 19 13:08:26 2014 +0200 +++ b/misc/migration/3.18.0_Any.py Wed Nov 26 17:58:23 2014 +0100 @@ -133,17 +133,19 @@ # recreate the constraints, hook will lead to low-level recreation for eschema in sorted(schema.entities()): if eschema._unique_together: + print 'recreate unique indexes for', eschema rql_args = schemaserial.uniquetogether2rqls(eschema) for rql, args in rql_args: args['x'] = eschema.eid session.execute(rql, args) - commit() - +commit() # all attributes perms have to be refreshed ... -for rschema in schema.relations(): +for rschema in sorted(schema.relations()): if rschema.final: if rschema.type in fsschema: - sync_schema_props_perms(rschema.type, syncprops=False, ask_confirm=False) + print 'sync perms for', rschema.type + sync_schema_props_perms(rschema.type, syncprops=False, ask_confirm=False, commit=False) else: print 'WARNING: attribute %s missing from fs schema' % rschema.type +commit()