c4db_scopeNames doesn't return the name of the default scope if it is empty.
Description
A database should always have a default scope, even if all of its collections (including the default collection) are gone.
To repro: create a new db, delete its default collection. c4db_scopeNames returns a zero length list. It should return a list containing the name of the default collection.
Activity
Show:
CB robot July 1, 2022 at 11:11 PM
Build couchbase-lite-log-3.1.0-167 contains couchbase-lite-core commit cae3637 with commit message: : c4db_scopeNames should include name of the default scope e… (#1494)
CB robot July 1, 2022 at 10:18 PM
Build couchbase-lite-cblite-3.1.0-157 contains couchbase-lite-core commit cae3637 with commit message: : c4db_scopeNames should include name of the default scope e… (#1494)
CB robot June 25, 2022 at 6:50 AM
Build couchbase-lite-net-3.1.0-74 contains couchbase-lite-core commit cae3637 with commit message: : c4db_scopeNames should include name of the default scope e… (#1494)
CB robot June 22, 2022 at 5:53 AM
Build couchbase-lite-ios-3.1.0-169 contains couchbase-lite-core commit cae3637 with commit message: : c4db_scopeNames should include name of the default scope e… (#1494)
CB robot June 21, 2022 at 9:57 PM
Build couchbase-lite-c-3.1.0-128 contains couchbase-lite-core commit cae3637 with commit message: : c4db_scopeNames should include name of the default scope e… (#1494)
Fixed
Pinned fields
Click on the next to a field label to start pinning.
A database should always have a default scope, even if all of its collections (including the default collection) are gone.
To repro: create a new db, delete its default collection. c4db_scopeNames returns a zero length list. It should return a list containing the name of the default collection.