summaryrefslogtreecommitdiff
path: root/scripts/migration/0.8.2/tests/conftest.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-08-19 12:14:40 -0300
committerdrebs <drebs@leap.se>2016-08-23 18:48:26 -0300
commit4ed6bb54f1cc96ee0a8b98914c98b94edc1d1b1c (patch)
tree056a51d85176ca06623f68c9c20e13b04241f99e /scripts/migration/0.8.2/tests/conftest.py
parent46bb2b65e6fe642b07dee1de6c628c6f2cd303fd (diff)
[pkg] add leftovers deletion to couch scehma migration script
Previous versions of the couchdb schema used documents "u1db_sync_log" and "u1db_sync_state" to store sync metadata. At some point this was changed, but the documents might have stayed as leftovers. This commit adds the deletion of such documents to the migration script.
Diffstat (limited to 'scripts/migration/0.8.2/tests/conftest.py')
-rw-r--r--scripts/migration/0.8.2/tests/conftest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/migration/0.8.2/tests/conftest.py b/scripts/migration/0.8.2/tests/conftest.py
index 92d1e17e..8e49891c 100644
--- a/scripts/migration/0.8.2/tests/conftest.py
+++ b/scripts/migration/0.8.2/tests/conftest.py
@@ -31,7 +31,11 @@ initial_docs = [
{'_id': 'doc2', 'u1db_transactions': [(2, 'trans-2'), (4, 'trans-4')]},
{'_id': '_design/docs'},
{'_id': '_design/syncs'},
- {'_id': '_design/transactions', 'views': {'log': {'map': transaction_map}}}
+ {'_id': '_design/transactions',
+ 'views': {'log': {'map': transaction_map}}},
+ # the following should be removed if found in the dbs
+ {'_id': 'u1db_sync_log'},
+ {'_id': 'u1db_sync_state'},
]