diff --git a/core/trunk/sql/160.sql b/core/trunk/sql/160.sql index 5d4fad01f9abe69453c0969fdce3c2ace0d42ff3..acfe5bfca2182986bd0e9a077b342f1d8ced5591 100644 --- a/core/trunk/sql/160.sql +++ b/core/trunk/sql/160.sql @@ -875,4 +875,36 @@ ALTER TABLE mlb_coll_ext DROP COLUMN IF EXISTS recommendation_limit_date; ALTER TABLE mlb_coll_ext ADD COLUMN recommendation_limit_date timestamp without time zone default NULL; -- Change date_note type -ALTER TABLE notes ALTER COLUMN date_note TYPE timestamp without time zone; \ No newline at end of file +ALTER TABLE notes ALTER COLUMN date_note TYPE timestamp without time zone; + +CREATE SEQUENCE thesaurus_id_seq + INCREMENT 1 + MINVALUE 1 + MAXVALUE 9223372036854775807 + START 1 + CACHE 1; + +DROP TABLE thesaurus; + +CREATE TABLE thesaurus +( + thesaurus_id bigint NOT NULL DEFAULT nextval('thesaurus_id_seq'::regclass), + thesaurus_name character varying(255) NOT NULL, + thesaurus_description text, + thesaurus_name_associate character varying(255), + thesaurus_parent_id character varying(255), + creation_date timestamp without time zone, + CONSTRAINT thesaurus_pkey PRIMARY KEY (thesaurus_id) +) +WITH ( + OIDS=FALSE +); + +CREATE TABLE thesaurus_res +( + res_id bigint NOT NULL, + thesaurus_id bigint NOT NULL +) +WITH ( + OIDS=FALSE +); \ No newline at end of file