Files
geograsim/App/Don_t_Deploy/2026-07-11-class-modules-audio-info.sql
Adminator 328d542fdc Tourismustal: 2x2-Gebaeude korrekt im Painter (vorderste Kachel zeichnet)
Grosse Gebaeude wurden von davorliegenden Kacheln uebermalt (Grasbueschel
ueber dem Hotelfuss). Jetzt zeichnet die VORDERSTE Footprint-Kachel das
Sprite, Terrain-Details entfallen auf bebauten Kacheln, Sprite-Mitte =
Mitte der 4 Kacheln, w/bottom so dass der Fuss die vordere Spitze deckt.
SQL-Migration audio_info MySQL-kompatibel (information_schema-Guard statt
MariaDB IF NOT EXISTS - Prod ist echtes MySQL).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-11 18:10:46 +02:00

17 lines
791 B
SQL

-- ============================================================
-- class_modules.audio_info: Lehrer-Schalter für den Vorlese-Modus
-- (Audio-Info-Modus in Sims, derzeit Tourismustal). Default AN.
-- Stand: 2026-07-11 · Atlas
-- ACHTUNG: Prod ist echtes MySQL (kein MariaDB) → kein "IF NOT EXISTS"
-- bei ADD COLUMN. Guard über information_schema, damit idempotent.
-- ============================================================
SET @exists := (SELECT COUNT(*) FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'class_modules'
AND COLUMN_NAME = 'audio_info');
SET @ddl := IF(@exists = 0,
'ALTER TABLE class_modules ADD COLUMN audio_info TINYINT(1) NOT NULL DEFAULT 1',
'SELECT 1');
PREPARE stmt FROM @ddl;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;