chore: build

This commit is contained in:
2026-06-11 14:50:59 +02:00
parent 9b50dca96c
commit 3e02aaa9b2
8 changed files with 80 additions and 42 deletions
+5
View File
@@ -246,6 +246,11 @@ func InitDB() *Database {
log.Fatalf("❌ Erreur migration products.coming_soon: %v", err)
}
// Migration: prix actif/inactif sur les prix de produits
if _, err = database.Exec(`ALTER TABLE product_prices ADD COLUMN IF NOT EXISTS active_price BOOLEAN NOT NULL DEFAULT TRUE`); err != nil {
log.Fatalf("❌ Erreur migration product_prices.active_price: %v", err)
}
// Migration: table contacts (SAV Telegram)
if _, err = database.Exec(`CREATE TABLE IF NOT EXISTS contacts (
id SERIAL PRIMARY KEY,