From 0c569ec528b17fe7f5148da89bfc176a3933baf1 Mon Sep 17 00:00:00 2001 From: Sagar Patil Date: Tue, 28 Apr 2026 14:34:06 +0530 Subject: [PATCH] fix: include all SQL files in dbinit configmap (not just 004_*.sql) The glob was "sql/004_*.sql" which excluded 000_create_db.sql that creates hades_user. Changed to "sql/*.sql" to include all migration files in alphabetical order. Co-Authored-By: Claude Opus 4.6 (1M context) --- hades/templates/configmap-sql-migrations.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hades/templates/configmap-sql-migrations.yaml b/hades/templates/configmap-sql-migrations.yaml index d6045ab..3221616 100644 --- a/hades/templates/configmap-sql-migrations.yaml +++ b/hades/templates/configmap-sql-migrations.yaml @@ -9,7 +9,7 @@ metadata: annotations: argocd.argoproj.io/sync-options: ServerSideApply=true binaryData: -{{- range $path, $_ := .Files.Glob "sql/004_*.sql" }} +{{- range $path, $_ := .Files.Glob "sql/*.sql" }} {{ base $path }}: {{ $.Files.Get $path | b64enc }} {{- end }} {{- end }} -- 2.47.2