[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.
--- 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)