Versions Compared

Key

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

Highlights:

Jira Legacy
serverSystem JIRA
serverId3d53374a-bb19-35fe-ac23-1e9b72bdf813
keyAAM-1093

Jira Legacy
serverSystem JIRA
serverId3d53374a-bb19-35fe-ac23-1e9b72bdf813
keyAAM-1103

Bug fixes:

Jira Legacy
serverSystem JIRA
serverId3d53374a-bb19-35fe-ac23-1e9b72bdf813
keyAAM-1090

Jira Legacy
serverSystem JIRA
serverId3d53374a-bb19-35fe-ac23-1e9b72bdf813
keyAAM-1091

Tasks:

Jira Legacy
serverSystem JIRA
serverId3d53374a-bb19-35fe-ac23-1e9b72bdf813
keyAAM-1081

...

Jira Legacy
serverSystem JIRA
serverId3d53374a-bb19-35fe-ac23-1e9b72bdf813
keyAAM-1105

SQL Fixes:

For adding Tag Module to existing projects

Code Block
do $$
    declare
        r record;
        sql varchar;
    begin
        for r in select id from project where archive_initialized = true
            loop
                execute format('insert into project_system_template values (%L, ''TAG_MODULE'') on conflict do nothing', r.id);

                execute format('create table if not exists %s.tag
(
    _amid       uuid default uuid_generate_v4()   not null
        unique,
    created     timestamp,
    created_by  varchar,
    updated     timestamp,
    updated_by  varchar,
    id          uuid default uuid_generate_v1mc() not null
        primary key,
    name        varchar                           not null
        unique,
    description varchar(1000)
)', r.id);
                execute format('alter table %s.tag owner to "archive-manager"', r.id);

                execute format('create table if not exists %s.tag_mapping
(
    _amid                uuid default uuid_generate_v4()   not null
        unique,
    created              timestamp,
    created_by           varchar,
    updated              timestamp,
    updated_by           varchar,
    id                   uuid default uuid_generate_v1mc() not null
        primary key,
    tag_id               uuid                              not null
        constraint fk_3973b8bc_4b40_4beb_8ef6_456539d2c8ef
            references %s.tag
            deferrable initially deferred,
    object_reference     uuid                              not null,
    table_name_reference varchar                           not null
)', r.id, r.id);
                execute format('alter table %s.tag_mapping owner to "archive-manager"', r.id);
                execute format('create index if not exists index_3973b8bc_4b40_4beb_8ef6_456539d2c8ef on %s.tag_mapping (tag_id)', r.id);
            end loop;
    end; $$

How to add Tag Module to existing projects

  1. Upgrade to 1.41.0

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

View file
nameasta7-upgrade-1.41.sh

3. Reindex all the projects.

Configuration: