Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
update system_template set template_id = '61d2e7e4-2fe4-4d7e-83b6-236355a15660' where name = 'PARTICIPANT_MODULE';

do $$
    declare
        r record;
        sql varchar;
    begin
        for r in select id from project where archive_initialized = true and exists (select project_id from project_system_template where project_id = id and template_name = 'PARTICIPANT_MODULE')
            loop
                execute format('alter table %s.aktor_struktur add column if not exists startdato varchar null', r.id);
                execute format('alter table %s.aktor_struktur add column if not exists sluttdato varchar null', r.id);
                execute format('alter table %s.alternativt_navn add column if not exists type varchar null', r.id);
            end loop;
    end; $$

How to upgrade:

  1. Upload the latest PARTICIPANT_MODULE and SECURITY_MODULE templates

  2. Upgrade to 1.49

  3. Go to the asta7 directory and run the following script

  4. Delete the old PARTICIPANT_MODULE and SECURITY_MODULE templates

  5. Reindex all the projects search data

View file
nameasta7-upgrade-1.49.sh