From 7a3d6ac84ea5f3bba6a2a4b522d29953e664ccbc Mon Sep 17 00:00:00 2001 From: root Date: Mon, 13 Oct 2025 11:47:24 +0800 Subject: [PATCH] fix(makefile): normalize tab indentation and remove redundant comments --- account/Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/account/Makefile b/account/Makefile index b53e122..8a99ba2 100644 --- a/account/Makefile +++ b/account/Makefile @@ -16,8 +16,6 @@ DB_URL := postgres://$(DB_USER):$(DB_PASS)@$(DB_HOST):$(DB_PORT)/$(DB_NAME) REPLICATION_MODE ?= pgsync -# 管理员账号用于执行需要超级权限的操作,例如删除数据库和初始化 pglogical -# 默认为业务账号,可通过环境变量覆盖 DB_ADMIN_USER ?= $(DB_USER) DB_ADMIN_PASS ?= $(DB_PASS) @@ -188,13 +186,13 @@ account-export: @go run ./cmd/migratectl/main.go export --dsn "$(DB_URL)" --output "$(ACCOUNT_EXPORT_FILE)" $(if $(ACCOUNT_EMAIL_KEYWORD),--email "$(ACCOUNT_EMAIL_KEYWORD)") account-import: - @[ -f "$(ACCOUNT_IMPORT_FILE)" ] || (echo "❌ 未找到文件 $(ACCOUNT_IMPORT_FILE)"; exit 1) - @go run ./cmd/migratectl/main.go import --dsn "$(DB_URL)" --file "$(ACCOUNT_IMPORT_FILE)" \ - $(if $(ACCOUNT_IMPORT_MERGE),--merge) \ - $(if $(ACCOUNT_IMPORT_MERGE_STRATEGY),--merge-strategy "$(ACCOUNT_IMPORT_MERGE_STRATEGY)") \ - $(if $(ACCOUNT_IMPORT_DRY_RUN),--dry-run) \ - $(foreach UUID,$(ACCOUNT_IMPORT_MERGE_ALLOWLIST),--merge-allowlist $(UUID)) \ - $(ACCOUNT_IMPORT_EXTRA_FLAGS) + @[ -f "$(ACCOUNT_IMPORT_FILE)" ] || (echo "❌ 未找到文件 $(ACCOUNT_IMPORT_FILE)"; exit 1) + @go run ./cmd/migratectl/main.go import --dsn "$(DB_URL)" --file "$(ACCOUNT_IMPORT_FILE)" \ + $(if $(ACCOUNT_IMPORT_MERGE),--merge) \ + $(if $(ACCOUNT_IMPORT_MERGE_STRATEGY),--merge-strategy "$(ACCOUNT_IMPORT_MERGE_STRATEGY)") \ + $(if $(ACCOUNT_IMPORT_DRY_RUN),--dry-run) \ + $(foreach UUID,$(ACCOUNT_IMPORT_MERGE_ALLOWLIST),--merge-allowlist $(UUID)) \ + $(ACCOUNT_IMPORT_EXTRA_FLAGS) create-super-admin: @[ -n "$(SUPERADMIN_USERNAME)" ] && [ -n "$(SUPERADMIN_PASSWORD)" ] || (echo "❌ 请指定用户名与密码"; exit 1)