Thu, 30 Jan 2025 21:20:27 +0100
prepare implementation of "variants"
introduces the class, implements basic DAO stuff, and
adds the new path parameter
relates to #491
345
7a515768c481
add author to issue history and RSS feed - fixes #463
Mike Becker <universe@uap-core.de>
parents:
285
diff
changeset
|
1 | -- apply this script to patch a version < 1.5.0 database to version 1.5.0 |
285 | 2 | |
345
7a515768c481
add author to issue history and RSS feed - fixes #463
Mike Becker <universe@uap-core.de>
parents:
285
diff
changeset
|
3 | alter table lpit_issue_history_event |
7a515768c481
add author to issue history and RSS feed - fixes #463
Mike Becker <universe@uap-core.de>
parents:
285
diff
changeset
|
4 | add userid integer null references lpit_user (userid) on delete set null; |
347
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
5 | |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
6 | create table lpit_variant |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
7 | ( |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
8 | id serial primary key, |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
9 | project integer not null references lpit_project (projectid), |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
10 | name text not null, |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
11 | node text not null, |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
12 | color char(6) not null default '000000', |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
13 | ordinal integer not null default 0, |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
14 | description text, |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
15 | active boolean not null default true |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
16 | ); |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
17 | |
d1edd8d9c8a1
prepare implementation of "variants"
Mike Becker <universe@uap-core.de>
parents:
345
diff
changeset
|
18 | create unique index lpit_variant_node_unique on lpit_variant (project, node); |