Commit d949351c68002be5db5e3d39c3e689e158dba043
1 parent
ca876096
update document link collaboration tables
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1838 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
17 additions
and
4 deletions
config/dmsDefaults.php
| @@ -120,7 +120,8 @@ $default->owl_words_lookup_table = "words_lookup"; | @@ -120,7 +120,8 @@ $default->owl_words_lookup_table = "words_lookup"; | ||
| 120 | //stores help text | 120 | //stores help text |
| 121 | $default->owl_help_table = "help"; | 121 | $default->owl_help_table = "help"; |
| 122 | $default->owl_document_text_table = "document_text"; | 122 | $default->owl_document_text_table = "document_text"; |
| 123 | -$default->owl_dependant_document_table = "dependant_document"; | 123 | +$default->owl_dependant_document_template_table = "dependant_document_template"; |
| 124 | +$default->owl_dependant_document_instance_table = "dependant_document_instance"; | ||
| 124 | $default->owl_document_link_table = "document_link"; | 125 | $default->owl_document_link_table = "document_link"; |
| 125 | 126 | ||
| 126 | // logo file that must reside inside lang/graphics directory | 127 | // logo file that must reside inside lang/graphics directory |
sql/tables.sql
| @@ -19,13 +19,20 @@ id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, | @@ -19,13 +19,20 @@ id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, | ||
| 19 | name CHAR(255) NOT NULL | 19 | name CHAR(255) NOT NULL |
| 20 | )TYPE = InnoDB; | 20 | )TYPE = InnoDB; |
| 21 | 21 | ||
| 22 | -CREATE TABLE dependant_documents ( | 22 | +CREATE TABLE dependant_document_instance ( |
| 23 | id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, | 23 | id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, |
| 24 | document_title TEXT, | 24 | document_title TEXT, |
| 25 | user_id INTEGER, | 25 | user_id INTEGER, |
| 26 | template_document_id INTEGER | 26 | template_document_id INTEGER |
| 27 | ) TYPE = InnoDB; | 27 | ) TYPE = InnoDB; |
| 28 | 28 | ||
| 29 | +CREATE TABLE dependant_document_template ( | ||
| 30 | +id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, | ||
| 31 | +document_title TEXT, | ||
| 32 | +default_user_id INTEGER, | ||
| 33 | +template_document_id INTEGER | ||
| 34 | +) TYPE = InnoDB; | ||
| 35 | + | ||
| 29 | CREATE TABLE discussion_threads ( | 36 | CREATE TABLE discussion_threads ( |
| 30 | id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, | 37 | id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, |
| 31 | document_id INTEGER NOT NULL, | 38 | document_id INTEGER NOT NULL, |
| @@ -442,8 +449,13 @@ PRIMARY KEY (id) | @@ -442,8 +449,13 @@ PRIMARY KEY (id) | ||
| 442 | ; | 449 | ; |
| 443 | 450 | ||
| 444 | 451 | ||
| 445 | -ALTER TABLE dependant_documents | ||
| 446 | -ADD CONSTRAINT PK_new_documents | 452 | +ALTER TABLE dependant_document_instance |
| 453 | +ADD CONSTRAINT PK_new_documents_instance | ||
| 454 | +PRIMARY KEY (id) | ||
| 455 | +; | ||
| 456 | + | ||
| 457 | +ALTER TABLE dependant_document_template | ||
| 458 | +ADD CONSTRAINT PK_new_document_template | ||
| 447 | PRIMARY KEY (id) | 459 | PRIMARY KEY (id) |
| 448 | ; | 460 | ; |
| 449 | 461 |