From d949351c68002be5db5e3d39c3e689e158dba043 Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 14 May 2003 11:05:13 +0000 Subject: [PATCH] update document link collaboration tables --- config/dmsDefaults.php | 3 ++- sql/tables.sql | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index b7b4dc3..e698673 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -120,7 +120,8 @@ $default->owl_words_lookup_table = "words_lookup"; //stores help text $default->owl_help_table = "help"; $default->owl_document_text_table = "document_text"; -$default->owl_dependant_document_table = "dependant_document"; +$default->owl_dependant_document_template_table = "dependant_document_template"; +$default->owl_dependant_document_instance_table = "dependant_document_instance"; $default->owl_document_link_table = "document_link"; // logo file that must reside inside lang/graphics directory diff --git a/sql/tables.sql b/sql/tables.sql index 0b767ca..102f024 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -19,13 +19,20 @@ id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, name CHAR(255) NOT NULL )TYPE = InnoDB; -CREATE TABLE dependant_documents ( +CREATE TABLE dependant_document_instance ( id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, document_title TEXT, user_id INTEGER, template_document_id INTEGER ) TYPE = InnoDB; +CREATE TABLE dependant_document_template ( +id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, +document_title TEXT, +default_user_id INTEGER, +template_document_id INTEGER +) TYPE = InnoDB; + CREATE TABLE discussion_threads ( id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, document_id INTEGER NOT NULL, @@ -442,8 +449,13 @@ PRIMARY KEY (id) ; -ALTER TABLE dependant_documents -ADD CONSTRAINT PK_new_documents +ALTER TABLE dependant_document_instance +ADD CONSTRAINT PK_new_documents_instance +PRIMARY KEY (id) +; + +ALTER TABLE dependant_document_template +ADD CONSTRAINT PK_new_document_template PRIMARY KEY (id) ; -- libgit2 0.21.4