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