diff --git a/core/trunk/structure.sql b/core/trunk/structure.sql index 195d97196079aa5ebf05478fe589c5bb41fc6bfe..80ee087888374c03dfdbd9a158b91fc90507fbea 100644 --- a/core/trunk/structure.sql +++ b/core/trunk/structure.sql @@ -1115,6 +1115,24 @@ CREATE TABLE notes WITH (OIDS=FALSE); +CREATE SEQUENCE notes_entities_id_seq + INCREMENT 1 + MINVALUE 1 + MAXVALUE 9223372036854775807 + START 20 + CACHE 1; + + +CREATE TABLE note_entities +( + id bigint NOT NULL DEFAULT nextval('notes_entities_id_seq'::regclass), + note_id bigint NOT NULL, + item_id character varying(50), + CONSTRAINT note_entities_pkey PRIMARY KEY (id) +) +WITH (OIDS=FALSE); + + -- modules/notes/sql/structure/notifications.postgresql.sql