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
sql/tables.sql
| ... | ... | @@ -15,6 +15,11 @@ is_generic BIT, |
| 15 | 15 | has_lookup BIT |
| 16 | 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 | 23 | CREATE TABLE document_fields_link ( |
| 19 | 24 | id INTEGER NOT NULL UNIQUE AUTO_INCREMENT, |
| 20 | 25 | document_id INTEGER NOT NULL, |
| ... | ... | @@ -577,6 +582,14 @@ INSERT INTO mime_types (filetypes, mimetypes) VALUES ('zip', 'application/zip'); |
| 577 | 582 | INSERT INTO mime_types (filetypes, mimetypes) VALUES ('gz', 'application/x-gzip'); |
| 578 | 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 | 593 | -- supported languages (not really ;) |
| 581 | 594 | INSERT INTO language_lookup (name) VALUES ("English"); |
| 582 | 595 | INSERT INTO language_lookup (name) VALUES ("Chinese"); | ... | ... |