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>
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
-- ============================================================
|
||||
-- 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 · idempotent (MariaDB IF NOT EXISTS)
|
||||
-- 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.
|
||||
-- ============================================================
|
||||
ALTER TABLE class_modules
|
||||
ADD COLUMN IF NOT EXISTS audio_info TINYINT(1) NOT NULL DEFAULT 1;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user