[serverctl] remove broken schema-sync command
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 03 Feb 2014 18:19:26 +0100
changeset 9485 2b47e800cea6
parent 9482 5b97e69f9c29
child 9486 9a62c52d167e
[serverctl] remove broken schema-sync command As far as I can tell the migration handler hasn't had a cmd_synchronize_schema method since cubicweb 3.2.0.
server/serverctl.py
--- a/server/serverctl.py	Wed Jan 29 13:45:03 2014 +0100
+++ b/server/serverctl.py	Mon Feb 03 18:19:26 2014 +0100
@@ -1006,26 +1006,6 @@
         cnx.commit()
 
 
-class SynchronizeInstanceSchemaCommand(Command):
-    """Synchronize persistent schema with cube schema.
-
-    Will synchronize common stuff between the cube schema and the
-    actual persistent schema, but will not add/remove any entity or relation.
-
-    <instance>
-      the identifier of the instance to synchronize.
-    """
-    name = 'schema-sync'
-    arguments = '<instance>'
-    min_args = max_args = 1
-
-    def run(self, args):
-        appid = args[0]
-        config = ServerConfiguration.config_for(appid)
-        mih = config.migration_handler()
-        mih.cmd_synchronize_schema()
-
-
 class SynchronizeSourceCommand(Command):
     """Force a source synchronization.
 
@@ -1104,7 +1084,7 @@
                  StartRepositoryCommand,
                  DBDumpCommand, DBRestoreCommand, DBCopyCommand,
                  AddSourceCommand, CheckRepositoryCommand, RebuildFTICommand,
-                 SynchronizeInstanceSchemaCommand, SynchronizeSourceCommand, SchemaDiffCommand,
+                 SynchronizeSourceCommand, SchemaDiffCommand,
                  ):
     CWCTL.register(cmdclass)