From 65af28d367a0234423816c20769154691d4aad70 Mon Sep 17 00:00:00 2001 From: Twilight Date: Mon, 15 Jul 2024 00:02:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20atlas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d80e3ac..2a5ad20 100644 --- a/Makefile +++ b/Makefile @@ -8,5 +8,8 @@ grpc-web: grpcwebproxy --backend_addr=localhost:8081 --run_http_server --run_tls_server=false --server_http_debug_port 18081 --allow_all_origins --server_bind_address 127.0.0.1 install-deps: go install github.com/swaggo/swag/cmd/swag@latest + curl -sSf https://atlasgo.sh | sh swag: - swag init -g internal/routes/router.go --parseDependency \ No newline at end of file + swag init -g internal/routes/router.go --parseDependency +hash-migration: + atlas migrate hash --dir "file://internal/migrations" \ No newline at end of file