Skip to content

Commit

Permalink
chore(package): @hoodie/[email protected]
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Hoodie now keeps state of all databases and access in a dedicated
`hoodie-store` database. If your app uses CouchDB as its backend, there
is no migration required, it happens automatically on next restart.

If you don’t use CouchDB (which is the default), the simplest way to
"migrate" is to delete the `.hoodie/data` folder. It will loose all
data, so this is only an option for local development. If you don’t want
to loose data, you manually have to create the `hoodie-store`
database with documents for each user database. The documents look
like this:

```json
{
   "_id": "db_user/lsdlo55",
   "_rev": "1-a01e6998fb10543ca0402e648dd1d048",
   "access": {
       "read": {
           "role": [
               "id:lsdlo55"
           ]
       },
       "write": {
           "role": [
               "id:lsdlo55"
           ]
       }
   }
}
```
  • Loading branch information
gr2m committed Sep 13, 2016
1 parent 99fcbaa commit fdf34ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@hoodie/account": "^2.0.0",
"@hoodie/admin": "^1.0.1",
"@hoodie/client": "^5.0.0",
"@hoodie/server": "^20.0.0",
"@hoodie/server": "^21.1.0",
"@hoodie/store": "^1.0.1",
"async": "^2.0.0",
"browserify": "^13.0.1",
Expand Down

0 comments on commit fdf34ca

Please sign in to comment.