@@ -0,0 +1,1419 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0Afrom corehq.apps.accounting.bootstrap.config.cchq_software_plan_bootstrap import (%0A    BOOTSTRAP_CONFIG as ORIGINAL_BOOTSTRAP_CONFIG,%0A)%0Afrom corehq.apps.accounting.bootstrap.config.community_v1 import (%0A    BOOTSTRAP_CONFIG as COMMUNITY_V1_BOOTSTRAP_CONFIG,%0A)%0Afrom corehq.apps.accounting.bootstrap.config.resellers_and_managed_hosting import (%0A    BOOTSTRAP_CONFIG as RESELLERS_BOOTSTRAP_CONFIG,%0A)%0Afrom corehq.apps.accounting.bootstrap.utils import ensure_plans%0Afrom corehq.sql_db.operations import HqRunPython%0A%0A%0A# from 0003_bootstrap%0Adef cchq_software_plan_bootstrap(apps, schema_editor):%0A    ensure_plans(ORIGINAL_BOOTSTRAP_CONFIG, dry_run=False, verbose=True, apps=apps)%0A%0A%0A# from 0028_bootstrap_new_editions%0Adef cchq_new_editions_bootstrap(apps, schema_editor):%0A    ensure_plans(RESELLERS_BOOTSTRAP_CONFIG, dry_run=False, verbose=True, apps=apps) #%0A%0A%0A# from 0040_community_v1%0Adef _bootstrap_new_community_role(apps, schema_editor):%0A    ensure_plans(COMMUNITY_V1_BOOTSTRAP_CONFIG, dry_run=False, verbose=True, apps=apps)%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('accounting', '0046_created_by_blank'),%0A    %5D%0A%0A    operations = %5B%0A        HqRunPython(cchq_software_plan_bootstrap),%0A        HqRunPython(cchq_new_editions_bootstrap),%0A        HqRunPython(_bootstrap_new_community_role),%0A    %5D%0A

reset software plans to the right defaults