MarseyWorld/migrations/20231104-allow-multiple-sid...

5 lines
337 B
MySQL
Raw Normal View History

2023-11-04 22:03:26 +00:00
alter table holes add column sidebarurls character varying(60)[] default '{}'::character varying[] not null;
update holes set sidebarurls = array_append(sidebarurls, sidebarurl) WHERE sidebarurl is not null;
alter table holes drop column sidebarurl;
2023-11-04 22:17:23 +00:00
update hole_actions set kind='upload_sidebar_image' where kind='change_sidebar_image';