Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2021-12-01 22:47:21 +0300
committerToon Claes <toon@gitlab.com>2021-12-01 22:47:21 +0300
commita191a5d10f0772ae2ed6ec869001ddde6d277827 (patch)
treedb62a56fcac12bac2034a3e847594c700dc0c47c /Makefile
parent6ade7fbe35ea31dcd554397ee1adbe77b9ad070d (diff)
parent34484fdb749626f8dae9efd3dde260d0bd3163d5 (diff)
Merge branch 'pks-praefect-dump-database' into 'master'
praefect: Track database schema in Git See merge request gitlab-org/gitaly!4130
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6d2431394..8b683def1 100644
--- a/Makefile
+++ b/Makefile
@@ -468,13 +468,18 @@ lint-proto: ${PROTOC} ${PROTOC_GEN_GITALY}
.PHONY: no-changes
no-changes:
- ${Q}${GIT} status --porcelain | awk '{ print } END { if (NR > 0) { exit 1 } }'
+ ${Q}${GIT} diff --exit-code
.PHONY: no-proto-changes
no-proto-changes: | ${BUILD_DIR}
${Q}${GIT} diff -- '*.pb.go' 'ruby/proto/gitaly' >${BUILD_DIR}/proto.diff
${Q}if [ -s ${BUILD_DIR}/proto.diff ]; then echo "There is a difference in generated proto files. Please take a look at ${BUILD_DIR}/proto.diff file." && exit 1; fi
+.PHONY: dump-database-schema
+## Dump the clean database schema of Praefect into a file.
+dump-database-schema: build
+ ${Q}"${SOURCE_DIR}"/_support/generate-praefect-schema >"${SOURCE_DIR}"/_support/praefect-schema.sql
+
.PHONY: smoke-test
smoke-test: TEST_PACKAGES := ${SOURCE_DIR}/internal/gitaly/rubyserver
smoke-test: all rspec