code: def handle(self, *args, **options):
          
          if options['schema_name']:
              # only run on a particular schema
              connection.set_schema_to_public()
              self.execute_command(get_tenant_model().objects.get(schema_name=options['schema_name']), self.COMMAND_NAME,
                                   *args, **options)
          else:
              for tenant in get_tenant_model().objects.all():
                  if not (options['skip_public'] and tenant.schema_name == get_public_schema_name()):
                      self.execute_command(tenant, self.COMMAND_NAME, *args, **options)
docs: Iterates a command over all registered schemata.