~fabricematrat/charmworld/redirect-charm

« back to all changes in this revision

Viewing changes to charmworld/migrations/migrate.py

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2014-04-21 15:59:48 UTC
  • mfrom: (501.2.4 comma-migration-2)
  • Revision ID: tarmac-20140421155948-ot1x6l5gu321ul4v
Exodus to remove comma-sep constraints.

Comma-separated constraints in bundles are deprecated.  Currently newly
processed bundles are converted to space-separated on ingestion but there are
a number of old bundles in the db that need fixing.

As this is an exodus, and only one can be present at a time, the 025 exodus is
deleted.

https://codereview.appspot.com/89770044/

R=jcsackett.

Approved by Juju Gui Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
import pymongo
34
34
from pymongo.errors import OperationFailure
35
 
 
36
35
from charmworld.models import (
37
36
    CharmSource,
38
37
    getconnection,