diff --git a/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/down.sql b/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/down.sql index dd1062b2d5..97a5f2746b 100644 --- a/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/down.sql +++ b/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/down.sql @@ -1,2 +1,6 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + -- This file should undo anything in `up.sql` drop table unsubscribe_reason; diff --git a/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/up.sql b/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/up.sql index 1cda70145b..0755b4629f 100644 --- a/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/up.sql +++ b/_sql/migrations/2023-02-03-035217_unsubscribe_reason_table/up.sql @@ -1,3 +1,7 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + CREATE TABLE unsubscribe_reason ( -- Generic primary key id BIGINT(20) NOT NULL AUTO_INCREMENT, diff --git a/_sql/migrations/2023-03-11-042808_alter_tts_models_add_mel_multiply_factor/down.sql b/_sql/migrations/2023-03-11-042808_alter_tts_models_add_mel_multiply_factor/down.sql new file mode 100644 index 0000000000..17eb1d31ec --- /dev/null +++ b/_sql/migrations/2023-03-11-042808_alter_tts_models_add_mel_multiply_factor/down.sql @@ -0,0 +1,6 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + +ALTER TABLE tts_models DROP COLUMN maybe_custom_mel_multiply_factor; +ALTER TABLE tts_models DROP COLUMN use_default_mel_multiply_factor; diff --git a/_sql/migrations/2023-03-11-042808_alter_tts_models_add_mel_multiply_factor/up.sql b/_sql/migrations/2023-03-11-042808_alter_tts_models_add_mel_multiply_factor/up.sql new file mode 100644 index 0000000000..a161b92aaa --- /dev/null +++ b/_sql/migrations/2023-03-11-042808_alter_tts_models_add_mel_multiply_factor/up.sql @@ -0,0 +1,15 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + +-- If true, multiply the mel outputs before being vocoded by a globally default constant. +ALTER TABLE tts_models + ADD COLUMN use_default_mel_multiply_factor BOOLEAN NOT NULL DEFAULT FALSE + AFTER text_preprocessing_algorithm; + +-- If not null, multiply the mel outputs before being vocoded by this value. +-- This is used instead of the default if `use_default_mel_multiply_factor` is +-- set (ie. `use_default_mel_multiply_factor` is ignored and this custom value is used instead) +ALTER TABLE tts_models + ADD COLUMN maybe_custom_mel_multiply_factor DOUBLE DEFAULT NULL + AFTER use_default_mel_multiply_factor; diff --git a/_sql/migrations_squashed/tts_tables/tts_models.sql b/_sql/migrations_squashed/tts_tables/tts_models.sql index add0c2c4d9..9098eab8d0 100644 --- a/_sql/migrations_squashed/tts_tables/tts_models.sql +++ b/_sql/migrations_squashed/tts_tables/tts_models.sql @@ -49,6 +49,14 @@ CREATE TABLE tts_models ( 'arpabet' ) NOT NULL DEFAULT 'basic', + -- If true, multiply the mel outputs before being vocoded by a globally default constant. + use_default_mel_multiply_factor BOOLEAN NOT NULL DEFAULT FALSE, + + -- If not null, multiply the mel outputs before being vocoded by this value. + -- This is used instead of the default if `use_default_mel_multiply_factor` is + -- set (ie. `use_default_mel_multiply_factor` is ignored and this custom value is used instead) + maybe_custom_mel_multiply_factor DOUBLE DEFAULT NULL, + -- If set, use a different pretrained vocoder. -- If not set, use the website default. (Currently HifiGan-SS) maybe_default_pretrained_vocoder VARCHAR(64) DEFAULT NULL,