diff options
| author | mo khan <mo@mokhan.ca> | 2025-08-01 14:34:10 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-08-01 14:34:10 -0600 |
| commit | 4a9ff075f677117fea94a3ab212f64632e03d66b (patch) | |
| tree | 57622387fa6bfe3721887cf98210ef1b7d27eff8 /Makefile | |
| parent | 238b61113456ebad8bad880913dc315cd892a296 (diff) | |
| parent | 4ad54d26dd7e7aa337a833950616cf5786dd8977 (diff) | |
Merge branch 'spicedb-postgresql' into 'main'
Load SpiceDB schema into postgresql
See merge request gitlab-org/software-supply-chain-security/authorization/sparkled!22
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,6 +3,7 @@ GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/\//_/g') IMAGE_TAG := $(PROJECT_NAME):$(GIT_BRANCH) AUTHZD_BIN := bin/authzd SPARKLED_BIN := bin/sparkled +SPICEDB := bin/spicedb TOOL := bin/tool ZED := bin/zed @@ -90,4 +91,10 @@ db-init: db-create: db-init @mise exec postgres -- createdb -h /tmp sparkle_development || true -db-setup: db-schema-load db-seed +db-migrate: + @$(TOOL) godotenv -f .env.local,.env -- sh -c '$(SPICEDB) datastore migrate head --datastore-engine postgres --datastore-conn-uri "$$DATABASE_URL" --log-level trace' --skip-release-check + +db-console: + @mise exec postgres -- psql -h /tmp sparkle_development + +db-setup: db-create db-schema-load db-seed |
