summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-08-19 12:17:52 -0300
committerdrebs <drebs@leap.se>2016-08-23 18:48:26 -0300
commit099f2b7453ee6486ccc23c0766f613709aacbde0 (patch)
treed11f8dea0dbdce6abf4dbea0ae167c2a42bc25b1
parent4ed6bb54f1cc96ee0a8b98914c98b94edc1d1b1c (diff)
[pkg] move config doc as last action of couch schema migration script
If the moving of the config document is the last action of the couch schema migration script, then we can test for successful migration of a certain db by checking if the config document was already moved. This commit just changes the order of migration actions to enforce this situation.
-rw-r--r--scripts/migration/0.8.2/migrate_couch_schema/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/migration/0.8.2/migrate_couch_schema/__init__.py b/scripts/migration/0.8.2/migrate_couch_schema/__init__.py
index 60214aae..d0dd41e3 100644
--- a/scripts/migration/0.8.2/migrate_couch_schema/__init__.py
+++ b/scripts/migration/0.8.2/migrate_couch_schema/__init__.py
@@ -76,9 +76,9 @@ def migrate(args, target_version):
def _migrate_user_db(db, do_migrate):
_migrate_transaction_log(db, do_migrate)
- _migrate_config_doc(db, do_migrate)
_migrate_sync_docs(db, do_migrate)
_delete_design_docs(db, do_migrate)
+ _migrate_config_doc(db, do_migrate)
def _migrate_transaction_log(db, do_migrate):