feat(backend): add transactional outbox and embedded goose migrations

This commit is contained in:
shira committed 2026-10-05 23:32:43 +03:00
1 parent 653f3775f8
commit 15e2e50561
40 files changed
+2471 -67

No files matched your search

+11 -1
View File
@@ -23,6 +23,16 @@ build: ## Build the application binary
run: ## Run the application with the current environment
$(GO) run ./cmd/app
.PHONY: migrate-status migrate-up migrate-down-one
migrate-status: ## Show embedded migration status for the database in DATABASE_URL
$(GO) run ./cmd/migrate status
migrate-up: ## Apply pending embedded migrations to the database in DATABASE_URL
$(GO) run ./cmd/migrate up
migrate-down-one: ## Roll back the latest applied migration in the database in DATABASE_URL
$(GO) run ./cmd/migrate down-one
.PHONY: deps install install-tools
deps: ## Download pinned Go module dependencies
$(GO) mod download
@@ -63,7 +73,7 @@ gen-ml: ## Generate the internal ML service client
$(GO_TOOL) ogen -config codegen/ogen-ml.yml --target internal/adapter/secondary/ml/api --package api --clean ../api/ml/openapi.bundle.yml
.PHONY: gen-sqlc
gen-sqlc: ## Generate PostgreSQL health query code
gen-sqlc: ## Generate PostgreSQL query code from migrations and queries
$(GO_TOOL) sqlc generate -f codegen/sqlc.yml
.PHONY: gen-wire