Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBL - 1.2.0 upgrade from 1.1.0 clears device db #1161

Closed
PureRockets opened this issue Mar 25, 2016 · 5 comments

Comments

@PureRockets
Copy link

commented Mar 25, 2016

When using Android Studio with default settings, upgrading from 1.1.0 to 1.2.0 deletes the device local db.

Steps to repro:

Build any CBL solution in Android Studio with 1.1.0, such as the CouchbaseEvents project in the documentation
Deploy to simulator or actual device from Android Studio, and write a single document. Verify the document exists by retrieving the document.
Upgrade to 1.2.0 by updating build.gradle. In the dependencies section, modify the single line:

From:
compile 'com.couchbase.lite:couchbase-lite-android:1.1.0'

To:
compile 'com.couchbase.lite:couchbase-lite-android:1.2.0'

Redeploy the app
Attempt to retrieve the document. Note that it no longer exists.

ASK: The upgrade should persist the device db between upgrades

@hideki

This comment has been minimized.

Copy link

commented Mar 29, 2016

Hi @PureRockets,
We tested this scenario before releasing v1.2.0.
Do you have any additional information?
Thanks!
Hideki

@hideki hideki added this to the 1.2.2 milestone Mar 29, 2016

@hideki hideki self-assigned this Apr 1, 2016

@hideki hideki modified the milestones: 1.3, 1.2.2 Apr 5, 2016

@PureRockets

This comment has been minimized.

Copy link
Author

commented May 13, 2016

No additional information, it's easy to reproduce. Steps are provided above.

@hideki

This comment has been minimized.

Copy link

commented May 13, 2016

I followed the steps that was described in the ticket. But I still could not reproduce the issue.
Steps I did:

1. Create Android app with CBL v1.1.0
2. In the app, store the one document.
3. Confirmed that the document exists with multiple deployments.
4. Rebuild with app with CBL v1.2.0.
5. Verified the document that was created with CBL v1.1.0 still exists.

I guess there is missing information to reproduce the problem.
Thanks,

@hideki

This comment has been minimized.

Copy link

commented May 14, 2016

I tried to reproduce the issue with using Android Studio v1.5 and v2.0. Both versions can not reproduce the issue.

@hideki

This comment has been minimized.

Copy link

commented May 14, 2016

As this issue is not reproducible here and no additional information, I will close this ticket. If this is still reproducible with latest version of Couchbase Lite, please reopen the ticket.

@hideki hideki closed this May 14, 2016

@hideki hideki removed the ready label May 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.