setup/postgres/psql_patch_1.5.0.sql

Thu, 30 Jan 2025 21:20:27 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 30 Jan 2025 21:20:27 +0100
changeset 347
d1edd8d9c8a1
parent 345
7a515768c481
permissions
-rw-r--r--

prepare implementation of "variants"

introduces the class, implements basic DAO stuff, and
adds the new path parameter

relates to #491

-- apply this script to patch a version < 1.5.0 database to version 1.5.0

alter table lpit_issue_history_event
    add userid integer null references lpit_user (userid) on delete set null;

create table lpit_variant
(
    id          serial primary key,
    project     integer not null references lpit_project (projectid),
    name        text    not null,
    node        text    not null,
    color       char(6) not null default '000000',
    ordinal     integer not null default 0,
    description text,
    active      boolean not null default true
);

create unique index lpit_variant_node_unique on lpit_variant (project, node);

mercurial