1 2 3 4 5 6 7 8 9 10 |
# Copyright 2013 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyelasticsearch.exceptions import ElasticHttpNotFoundError from charmworld.search import BUNDLE def upgrade(db, index_client): db.bundles.remove({}, False) index_client._client.delete_all(index_client.index_name, BUNDLE) |