mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
75f1c4c576
* feat: add search user memberships * feat: add search user memberships * feat: read user member ship * feat: add usergrant search key * feat: uesrmemberships based on permissions * feat: merge master * fix: correct permissions * fix: update display name on change profile * fix: merge request converations * fix: err handling * Update internal/user/model/user_membership_view.go Co-authored-by: Silvan <silvan.reusser@gmail.com> Co-authored-by: Silvan <silvan.reusser@gmail.com>
34 lines
804 B
Markdown
34 lines
804 B
Markdown
|
|
## local development
|
|
|
|
### start cockroach in docker
|
|
|
|
```bash
|
|
docker rm -f zitadel-db &&
|
|
rm -rf ${GOPATH}/src/github.com/caos/zitadel/cockroach-data &&
|
|
docker run -d \
|
|
--name=zitadel-db \
|
|
--hostname=zitadel-db \
|
|
-p 26257:26257 -p 8080:8080 \
|
|
-v "${GOPATH}/src/github.com/caos/zitadel/cockroach-data/zitadel1:/cockroach/cockroach-data" \
|
|
cockroachdb/cockroach:latest start --insecure
|
|
```
|
|
|
|
### local database migrations
|
|
|
|
#### local migrate
|
|
|
|
`go generate $GOPATH/src/github.com/caos/zitadel/migrations/cockroach/migrate_local.go`
|
|
|
|
#### local cleanup
|
|
|
|
`go generate $GOPATH/src/github.com/caos/zitadel/migrations/cockroach/clean_local.go`
|
|
|
|
|
|
### Connect to Cockroach
|
|
|
|
`docker exec -it "zitadel-db" /cockroach/cockroach sql --insecure`
|
|
|
|
#### Should show eventstore, management, admin, auth
|
|
`show databases;`
|