fix: make dbinit SQL idempotent to prevent data wipe on re-runs #1

Merged
sagar.patil merged 1 commits from bugfix/hadesSql into main 2026-03-12 07:02:38 +00:00
Collaborator
  • 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

- 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>
sagar.patil added 1 commit 2026-03-12 07:02:32 +00:00
- 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>
sagar.patil merged commit 8bb0c1392c into main 2026-03-12 07:02:38 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea_admin/hades-chart#1
No description provided.