Mercurial > gemma
view schema/updates/1317/01.migrate_styles.sql @ 5560:f2204f91d286
Join the log lines of imports to the log exports to recover data from them.
Used in SR export to extract information that where in the meta json
but now are only found in the log.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 09 Feb 2022 18:34:40 +0100 |
parents | 4a9a1e323e11 |
children |
line wrap: on
line source
ALTER TABLE sys_admin.published_services ADD COLUMN bin_blob bytea; UPDATE sys_admin.published_services SET bin_blob = style::text::bytea WHERE style is NOT NULL; ALTER TABLE sys_admin.published_services DROP COLUMN style; ALTER TABLE sys_admin.published_services RENAME COLUMN bin_blob TO style;