Application is crashing when updating the new application with couchbaseLite v3.2.1

We are encountering a crash issue while updating the older application (Couchbase Lite version 3.1.3) to newer application (Couchbase Lite version with 3.2.1).
Please find the crash details below:

FATAL EXCEPTION: main (Ask Gemini)
Process: com.xxxxxxxxx.xxxxxxxxx.ug.qa, PID: 30837
java.lang.RuntimeException: Unable to create application com.xxxxxxxxx.xxxxxxxxx.core.architecture.MyApplication: CouchbaseLiteException{CouchbaseLite.SQLite, 1: no such table: kv_peerCheckpoints -- ALTER TABLE "kv_peerCheckpoints" ADD COLUMN expiration INTEGER; CREATE INDEX "kv_peerCheckpoints_expiration" ON "kv_peerCheckpoints" (expiration) WHERE expiration not null [3, 1]
   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7672 undefined)
                                                                                                      at android.app.ActivityThread.-$Nest$mhandleBindApplication(Unknown Source:0)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2410 undefined)
   at android.os.Handler.dispatchMessage(Handler.java:106 undefined)
   at android.os.Looper.loopOnce(Looper.java:226 undefined)
   at android.os.Looper.loop(Looper.java:313 undefined)
   at android.app.ActivityThread.main(ActivityThread.java:8810 undefined)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604 undefined)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067 undefined)
                                                                                                    Caused by: CouchbaseLiteException{CouchbaseLite.SQLite, 1: no such table: kv_peerCheckpoints -- ALTER TABLE "kv_peerCheckpoints" ADD COLUMN expiration INTEGER; CREATE INDEX "kv_peerCheckpoints_expiration" ON "kv_peerCheckpoints" (expiration) WHERE expiration not null [3, 1]
   at com.couchbase.lite.AbstractDatabase.openC4Db(AbstractDatabase.java:1345 undefined)
   at com.couchbase.lite.AbstractDatabase.<init>(AbstractDatabase.java:277 undefined)
   at com.couchbase.lite.AbstractDatabase.<init>(AbstractDatabase.java:254 undefined)
   at com.couchbase.lite.Database.<init>(Database.java:85 undefined)
   at com.xxxxxxxxx.ghcore.network.couchbase.CbDatabaseHelper.<init>(CbDatabaseHelper.kt:39 undefined)

Steps to reproduce the crash issue:

  1. We installed the application with Couchbase version 3.1.3 on the device.
  2. We have performed some task in the application, and the device was connected to a peer-to-peer network to sync data with another device and it was working fine.
  3. Subsequently, we attempted to update the new application with Couchbase version 3.2.1 on the device. However, the application crashed with the error log mentioned above.

Upon inspecting the database file, we found that the table appears as kv_peer\Checkpoints in the database file, please find the attached screenshot.

I’m pretty certain that’s a known bug we’ve already fixed internally. I’ll ask around to make sure and to see if we know when the fix will be available.

It’s the same bug reported here, tracked as CBL-6534. The fix will be in the next 3.2-series release, but I don’t have a date.