[serverctl] allow schema-diff when db and fs are not in sync
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 07 Mar 2016 17:51:30 +0100
changeset 11190 9b3a4ceff06a
parent 11189 3a39f145d530
child 11191 0c27c0da4094
[serverctl] allow schema-diff when db and fs are not in sync
cubicweb/server/serverctl.py
--- a/cubicweb/server/serverctl.py	Wed Jul 09 16:33:08 2014 +0200
+++ b/cubicweb/server/serverctl.py	Mon Mar 07 17:51:30 2016 +0100
@@ -1043,6 +1043,7 @@
         appid = args.pop(0)
         diff_tool = args.pop(0)
         config = ServerConfiguration.config_for(appid)
+        config.repairing = True
         repo = repoapi.get_repository(config=config)
         fsschema = config.load_schema(expand_cubes=True)
         schema_diff(fsschema, repo.schema, permissionshandler, diff_tool, ignore=('eid',))