4 Commits

Author SHA1 Message Date
fd7e97ce35 Fix access_permissions INSERT to use explicit column names
INSERT IGNORE without column names fails when extra columns
(alias, is_deleted) are added by hadesv2-auth schema migration.
Specifying columns makes the dump idempotent.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 23:22:14 +05:30
077835d68e fix: add DROP TRIGGER IF EXISTS before CREATE TRIGGER for idempotent re-runs
- MySQL 5.7 does not support CREATE TRIGGER IF NOT EXISTS
- Add DROP TRIGGER IF EXISTS before each CREATE TRIGGER in 004_hades.sql (69 triggers) and 002_dump.sql (90 triggers)
- DROP TRIGGER only removes trigger definition, does not affect table data
- Fixes ERROR 1359 (Trigger already exists) when dbinit Job runs multiple times

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 12:44:51 +05:30
a31616a6c9 fix: make dbinit SQL idempotent to prevent data wipe on re-runs
- Remove all DROP TABLE IF EXISTS statements from 004_hades.sql and 002_dump.sql
- Change CREATE TABLE to CREATE TABLE IF NOT EXISTS
- Change INSERT INTO to INSERT IGNORE INTO for seed data
- Prevents app_contexts table wipe when ArgoCD re-syncs trigger duplicate dbinit Job runs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 12:26:39 +05:30
Vaibhav Pathak
df359d052c Restructure repo: move chart to hades/ and include MySQL subchart
- Moved helm/hades/* to hades/ to match ArgoCD path: hades
- Included mysql-1.6.9.tgz subchart for ArgoCD dependency resolution
- Fixed sync wave ordering: dbinit wave 0, deployment wave 1
2026-01-05 17:59:13 +05:30