Fix/default app tts (#476)

* set default TTS voice for new applicaiton

* add migration to update existing NULL values

* add migration to add default for existing db

* allow null
This commit is contained in:
Sam Machin
2025-07-01 12:48:39 +01:00
committed by GitHub
parent 542ccfca79
commit 9b4f1b67bf
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -228,6 +228,10 @@ const sql = {
],
9004: [
'ALTER TABLE applications ADD COLUMN env_vars TEXT',
],
9005: [
'UPDATE applications SET speech_synthesis_voice = \'en-US-Standard-C\' WHERE speech_synthesis_voice IS NULL AND speech_synthesis_vendor = \'google\' AND speech_synthesis_language = \'en-US\'',
'ALTER TABLE applications MODIFY COLUMN speech_synthesis_voice VARCHAR(255) DEFAULT \'en-US-Standard-C\''
]
};