Mercurial > gemma
view schema/updates/1317/01.migrate_styles.sql @ 5677:a57be8bfb6ea sr-v2
More suited file names.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 11 Feb 2024 09:51:21 +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;