Schema Changes: 3.3.1
Upgrade: 3.3.0 → 3.3.1
This release applied 4 migration(s) to the database schema.
| ID | Type | Description |
|---|---|---|
data |
catalog holds prefetch |
|
data |
hatch settings |
|
schema |
lp1820339 pg10 vandelay |
|
schema |
ate outputs indexes |
Migration Details
1160 — catalog holds prefetch
Type: data
View SQL
INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
VALUES (
'catalog.record.holds.prefetch', 'cat', 'bool',
oils_i18n_gettext(
'catalog.record.holds.prefetch',
'Pre-Fetch Record Holds',
'cwst', 'label'
)
);
1162 — hatch settings
Type: data
View SQL
INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
VALUES (
'eg.print.config.default', 'gui', 'object',
oils_i18n_gettext (
'eg.print.config.default',
'Print config for default context',
'cwst', 'label'
)
), (
'eg.print.config.receipt', 'gui', 'object',
oils_i18n_gettext (
'eg.print.config.receipt',
'Print config for receipt context',
'cwst', 'label'
)
), (
'eg.print.config.label', 'gui', 'object',
oils_i18n_gettext (
'eg.print.config.label',
'Print config for label context',
'cwst', 'label'
)
), (
'eg.print.config.mail', 'gui', 'object',
oils_i18n_gettext (
'eg.print.config.mail',
'Print config for mail context',
'cwst', 'label'
)
), (
'eg.print.config.offline', 'gui', 'object',
oils_i18n_gettext (
'eg.print.config.offline',
'Print config for offline context',
'cwst', 'label'
)
);
1163 — lp1820339 pg10 vandelay
Type: schema
View SQL
CREATE OR REPLACE FUNCTION vandelay.flatten_marc_hstore(
record_xml TEXT
) RETURNS HSTORE AS $func$
RETURN (SELECT
HSTORE(
ARRAY_AGG(tag || (COALESCE(subfield, ''))),
ARRAY_AGG(value)
)
FROM (
SELECT tag, subfield, ARRAY_AGG(value)::TEXT AS value
FROM (SELECT tag,
subfield,
CASE WHEN tag = '020' THEN -- caseless -- isbn
LOWER((SELECT REGEXP_MATCHES(value,$$^(\S{10,17})$$))[1] || '%')
WHEN tag = '022' THEN -- caseless -- issn
LOWER((SELECT REGEXP_MATCHES(value,$$^(\S{4}[- ]?\S{4})$$))[1] || '%')
WHEN tag = '024' THEN -- caseless -- upc (other)
LOWER(value || '%')
ELSE
value
END AS value
FROM vandelay.flatten_marc(record_xml)) x
GROUP BY tag, subfield ORDER BY tag, subfield
) subquery
);
END;
$func$ LANGUAGE PLPGSQL;
1161 — ate outputs indexes
Type: schema
View SQL
-- No transaction needed. This can be run on a live, production server.
CREATE INDEX CONCURRENTLY atev_template_output ON action_trigger.event (template_output);
CREATE INDEX CONCURRENTLY atev_async_output ON action_trigger.event (async_output);
CREATE INDEX CONCURRENTLY atev_error_output ON action_trigger.event (error_output);