diff --git a/migrations/sqlite/0002_table_updates.sql b/migrations/sqlite/0002_table_updates.sql index 1d4e2be..2ed77f0 100644 --- a/migrations/sqlite/0002_table_updates.sql +++ b/migrations/sqlite/0002_table_updates.sql @@ -83,6 +83,10 @@ update api_translations set servicename = 'helloao'; alter table translations drop column short_name; alter table translations drop column api_endpoint; +alter table translations add column path text default '' not null; +alter table translations add column enabled boolean default true not null; +update translations set path = 'bsb' where code = 'bsb'; +update translations set path = 'kjv' where code = 'kjv'; -- Remove translation metadata from verse list. alter table verses drop column translation; @@ -101,4 +105,8 @@ create table if not exists verse_translations ( -- Drop superfluous tables. drop table if exists verse_votes; drop table if exists verse_rotation_translations; -drop table if exists verse_rotation_translation_votes; \ No newline at end of file +drop table if exists verse_rotation_translation_votes; + +-- Update configurations and defaults. +insert into system_config (config, value) values ('translations.default', 'bsb'); +alter table system_config rename to settings; \ No newline at end of file