Table updates.

This commit is contained in:
Benjamin A. Shelton 2026-10-23 11:08:43 -06:00
commit 94774e8f83
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -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;
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;