mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 22:07:32 +00:00
0b012f2fa2
* update and delete project grants * fix: user grant id (#421) * fix: verboser logging on sql err (#412) * fix(eventstore): improve insert statement * fix: verbose logging on error * fix: simplify insertEvents * fix: project grant delete (#417) * fix: add grant id to user grant if needed * fix: add grant id to user grant if needed Co-authored-by: Silvan <silvan.reusser@gmail.com> * fix user grant context * lint * role validators * fix: usergrantid (#424) * fix: verboser logging on sql err (#412) * fix(eventstore): improve insert statement * fix: verbose logging on error * fix: simplify insertEvents * fix: project grant delete (#417) * fix: add grant id to user grant if needed * fix: add grant id to user grant if needed * fix: add bulk remove * fix: merge Co-authored-by: Silvan <silvan.reusser@gmail.com> Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com> Co-authored-by: Silvan <silvan.reusser@gmail.com>
34 lines
805 B
Markdown
34 lines
805 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:v19.2.2 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;`
|