@@ -11,6 +11,104 @@ externallink NOT LIKE 'http%';
1111ALTER TABLE public .dim_linkelements
1212 ALTER COLUMN xpath TYPE text COLLATE pg_catalog." default" ;
1313
14+ -- curation
15+ CREATE SEQUENCE IF NOT EXISTS public .curationentries_id_seq
16+ INCREMENT 1
17+ START 1
18+ MINVALUE 1
19+ MAXVALUE 9223372036854775807
20+ CACHE 1 ;
21+
22+ ALTER SEQUENCE public .curationentries_id_seq
23+ OWNED BY public .curationentries .id;
24+
25+ ALTER SEQUENCE public .curationentries_id_seq
26+ OWNER TO postgres;
27+
28+ CREATE SEQUENCE IF NOT EXISTS public .curationnotes_id_seq
29+ INCREMENT 1
30+ START 1
31+ MINVALUE 1
32+ MAXVALUE 9223372036854775807
33+ CACHE 1 ;
34+
35+ ALTER SEQUENCE public .curationnotes_id_seq
36+ OWNED BY public .curationnotes .id;
37+
38+ ALTER SEQUENCE public .curationnotes_id_seq
39+ OWNER TO postgres;
40+
41+ CREATE TABLE IF NOT EXISTS public .curationnotes
42+ (
43+ id bigint NOT NULL DEFAULT nextval(' curationnotes_id_seq' ::regclass),
44+ versionno integer NOT NULL ,
45+ extra xml,
46+ usertype integer ,
47+ creationdate timestamp without time zone ,
48+ comment text COLLATE pg_catalog." default" ,
49+ userref bigint ,
50+ curationentryref bigint ,
51+ CONSTRAINT curationnotes_pkey PRIMARY KEY (id),
52+ CONSTRAINT fk_2b898659 FOREIGN KEY (curationentryref)
53+ REFERENCES public .curationentries (id) MATCH SIMPLE
54+ ON UPDATE NO ACTION
55+ ON DELETE NO ACTION,
56+ CONSTRAINT fk_5c66acff FOREIGN KEY (userref)
57+ REFERENCES public .users (id) MATCH SIMPLE
58+ ON UPDATE NO ACTION
59+ ON DELETE NO ACTION
60+ )
61+
62+ TABLESPACE pg_default;
63+
64+ ALTER TABLE IF EXISTS public .curationnotes
65+ OWNER to postgres;
66+ CREATE INDEX IF NOT EXISTS idx_curationnote_id
67+ ON public .curationnotes USING btree
68+ (id ASC NULLS LAST)
69+ TABLESPACE pg_default;
70+
71+
72+ CREATE TABLE IF NOT EXISTS public .curationentries
73+ (
74+ id bigint NOT NULL DEFAULT nextval(' curationentries_id_seq' ::regclass),
75+ versionno integer NOT NULL ,
76+ extra xml,
77+ topic text COLLATE pg_catalog." default" ,
78+ type integer ,
79+ name character varying (255 ) COLLATE pg_catalog." default" ,
80+ description text COLLATE pg_catalog." default" ,
81+ solution character varying (255 ) COLLATE pg_catalog." default" ,
82+ " position" integer ,
83+ source character varying (255 ) COLLATE pg_catalog." default" ,
84+ creationdate timestamp without time zone ,
85+ userisdone boolean ,
86+ isapproved boolean ,
87+ lastchangedatetime_user timestamp without time zone ,
88+ lastchangedatetime_curator timestamp without time zone ,
89+ datasetref bigint ,
90+ userref bigint ,
91+ CONSTRAINT curationentries_pkey PRIMARY KEY (id),
92+ CONSTRAINT fk_183adac3 FOREIGN KEY (userref)
93+ REFERENCES public .users (id) MATCH SIMPLE
94+ ON UPDATE NO ACTION
95+ ON DELETE NO ACTION,
96+ CONSTRAINT fk_5d430561 FOREIGN KEY (datasetref)
97+ REFERENCES public .datasets (id) MATCH SIMPLE
98+ ON UPDATE NO ACTION
99+ ON DELETE NO ACTION
100+ )
101+
102+ TABLESPACE pg_default;
103+
104+ ALTER TABLE IF EXISTS public .curationentries
105+ OWNER to postgres;
106+ CREATE INDEX IF NOT EXISTS idx_curationentry_id
107+ ON public .curationentries USING btree
108+ (id ASC NULLS LAST)
109+ TABLESPACE pg_default;
110+
111+
14112 -- BEXIS2 Version Update
15113INSERT INTO public .versions (
16114 versionno, extra, module, value, date )
0 commit comments