Commit 60b32c8d61b41dc6b0437af0695371df0f0196d1
1 parent
21f3331a
added a data_type table
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1133 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
14 additions
and
0 deletions
sql/drop.sql
| 1 | DROP TABLE active_sessions; | 1 | DROP TABLE active_sessions; |
| 2 | +DROP TABLE data_types; | ||
| 2 | DROP TABLE document_fields; | 3 | DROP TABLE document_fields; |
| 3 | DROP TABLE document_fields_link; | 4 | DROP TABLE document_fields_link; |
| 4 | DROP TABLE document_transaction_types_lookup; | 5 | DROP TABLE document_transaction_types_lookup; |
sql/tables.sql
| @@ -15,6 +15,11 @@ is_generic BIT, | @@ -15,6 +15,11 @@ is_generic BIT, | ||
| 15 | has_lookup BIT | 15 | has_lookup BIT |
| 16 | )TYPE = InnoDB; | 16 | )TYPE = InnoDB; |
| 17 | 17 | ||
| 18 | +CREATE TABLE data_types( | ||
| 19 | +id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, | ||
| 20 | +name CHAR(255) NOT NULL | ||
| 21 | +)TYPE = InnoDB; | ||
| 22 | + | ||
| 18 | CREATE TABLE document_fields_link ( | 23 | CREATE TABLE document_fields_link ( |
| 19 | id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, | 24 | id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, |
| 20 | document_id INTEGER NOT NULL, | 25 | document_id INTEGER NOT NULL, |
| @@ -577,6 +582,14 @@ INSERT INTO mime_types (filetypes, mimetypes) VALUES ('zip', 'application/zip'); | @@ -577,6 +582,14 @@ INSERT INTO mime_types (filetypes, mimetypes) VALUES ('zip', 'application/zip'); | ||
| 577 | INSERT INTO mime_types (filetypes, mimetypes) VALUES ('gz', 'application/x-gzip'); | 582 | INSERT INTO mime_types (filetypes, mimetypes) VALUES ('gz', 'application/x-gzip'); |
| 578 | INSERT INTO mime_types (filetypes, mimetypes) VALUES ('tgz', 'application/x-gzip'); | 583 | INSERT INTO mime_types (filetypes, mimetypes) VALUES ('tgz', 'application/x-gzip'); |
| 579 | 584 | ||
| 585 | +-- data_types | ||
| 586 | +insert into data_types (name) values ('STRING'); | ||
| 587 | +insert into data_types (name) values ('CHAR'); | ||
| 588 | +insert into data_types (name) values ('TEXT'); | ||
| 589 | +insert into data_types (name) values ('INT'); | ||
| 590 | +insert into data_types (name) values ('FLOAT'); | ||
| 591 | + | ||
| 592 | + | ||
| 580 | -- supported languages (not really ;) | 593 | -- supported languages (not really ;) |
| 581 | INSERT INTO language_lookup (name) VALUES ("English"); | 594 | INSERT INTO language_lookup (name) VALUES ("English"); |
| 582 | INSERT INTO language_lookup (name) VALUES ("Chinese"); | 595 | INSERT INTO language_lookup (name) VALUES ("Chinese"); |