mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 16:38:14 +00:00
migrations for new columns: langauge, tts command
This commit is contained in:
1 parent
e571c36f78
commit
26bbbc412b
5 files changed
+53
No files matched your search
@@ -0,0 +1,9 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
ALTER TABLE tts_models
|
||||
DROP COLUMN ietf_language_tag;
|
||||
|
||||
ALTER TABLE tts_models
|
||||
DROP COLUMN ietf_primary_language_subtag;
|
||||
@@ -0,0 +1,13 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
-- The IETF BCP47 language tag (eg. en-US, es-419, ja-JP, etc.)
|
||||
ALTER TABLE tts_models
|
||||
ADD COLUMN ietf_language_tag VARCHAR(64) NOT NULL DEFAULT 'en-US'
|
||||
AFTER maybe_default_pretrained_vocoder;
|
||||
|
||||
-- The IETF BCP47 language tag's primary language subtag (eg. "es-419" becomes "es")
|
||||
ALTER TABLE tts_models
|
||||
ADD COLUMN ietf_primary_language_subtag VARCHAR(12) NOT NULL DEFAULT 'en'
|
||||
AFTER ietf_language_tag;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
ALTER TABLE tts_models
|
||||
DROP COLUMN maybe_unique_bot_command_prefix;
|
||||
@@ -0,0 +1,14 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
-- A bot command prefix, eg. 'sonic' that could be interpreted as '/sonic' by a TTS system.
|
||||
-- These are unique strings and can only be applied to one model at a time.
|
||||
-- Only moderators can set this, and it's only for the best voices.
|
||||
ALTER TABLE tts_models
|
||||
ADD COLUMN maybe_unique_bot_command_prefix VARCHAR(255) DEFAULT NULL
|
||||
AFTER is_twitch_featured;
|
||||
|
||||
-- And the unique index.
|
||||
ALTER TABLE tts_models
|
||||
ADD UNIQUE INDEX unique_index_maybe_unique_bot_command_prefix (maybe_unique_bot_command_prefix);
|
||||
@@ -61,6 +61,12 @@ CREATE TABLE tts_models (
|
||||
|
||||
-- ========== UNSTRUCTURED METADATA ==========
|
||||
|
||||
-- The IETF BCP47 language tag (eg. en-US, es-419, ja-JP, etc.)
|
||||
ietf_language_tag VARCHAR(64) NOT NULL DEFAULT 'en-US',
|
||||
|
||||
-- The IETF BCP47 language tag's primary language subtag (eg. "es-419" becomes "es")
|
||||
ietf_primary_language_subtag VARCHAR(12) NOT NULL DEFAULT 'en',
|
||||
|
||||
-- The "name" of the voice model, which might be complicated.
|
||||
-- If maybe_subject_token (etc.) is set, then it's authoritative instead.
|
||||
title VARCHAR(255) NOT NULL,
|
||||
@@ -87,6 +93,11 @@ CREATE TABLE tts_models (
|
||||
is_front_page_featured BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
is_twitch_featured BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
|
||||
-- A bot command prefix, eg. 'sonic' that could be interpreted as '/sonic' by a TTS system.
|
||||
-- These are unique strings and can only be applied to one model at a time.
|
||||
-- Only moderators can set this, and it's only for the best voices.
|
||||
maybe_unique_bot_command_prefix VARCHAR(255) DEFAULT NULL,
|
||||
|
||||
-- ========== IMMUTABLE PROVENANCE AND METADATA ==========
|
||||
|
||||
-- Where the file was originally downloaded (if it was downloaded)
|
||||
|
||||
Reference in new issue
Block a user