annotate schema/updates/1317/01.migrate_styles.sql @ 5279:a17c2a0b8e44

client: use current time in the review layer request * avoid using value from time slider in the request for review layer
author Fadi Abbud <fadi.abbud@intevation.de>
date Thu, 11 Jun 2020 15:50:11 +0200
parents 4a9a1e323e11
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4918
4a9a1e323e11 First version of geo styles in ZIP files.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1 ALTER TABLE sys_admin.published_services ADD COLUMN bin_blob bytea;
4a9a1e323e11 First version of geo styles in ZIP files.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 UPDATE sys_admin.published_services SET bin_blob = style::text::bytea WHERE style is NOT NULL;
4a9a1e323e11 First version of geo styles in ZIP files.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 ALTER TABLE sys_admin.published_services DROP COLUMN style;
4a9a1e323e11 First version of geo styles in ZIP files.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
4 ALTER TABLE sys_admin.published_services RENAME COLUMN bin_blob TO style;