-- ' ...blah
INSERT INTO authority.thesaurus (code, uri, name, control_set)
- SELECT code, uri, name, 1 FROM thesausi;
+ SELECT code, uri, name, 1 FROM thesauri;
UPDATE authority.thesaurus SET short_code = 'a' WHERE code = 'lcsh';
UPDATE authority.thesaurus SET short_code = 'b' WHERE code = 'lcshac';
WHERE short_code IS NULL;
INSERT INTO config.i18n_core (fq_field, identity_value, translation, string )
- SELECT 'at.name', t.code, each.key, each.value
+ SELECT 'at.name', t.code, (xlate).key, (xlate).value
FROM thesauri t,
- JOIN LATERAL each(t.xlate) ON TRUE
+ JOIN LATERAL each(t.xlate) AS xlate ON TRUE
WHERE NOT EXISTS
(SELECT id
FROM config.i18n_core
AND control_set = 1;
INSERT INTO config.i18n_core (fq_field, identity_value, translation, string )
- SELECT 'at.name', t.code, each.key, each.value
+ SELECT 'at.name', t.code, (xlate).key, (xlate).value
FROM thesauri t,
- JOIN LATERAL each(t.xlate) ON TRUE
+ JOIN LATERAL each(t.xlate) AS xlate ON TRUE
WHERE NOT EXISTS
(SELECT id
FROM config.i18n_core