[Rt-commit] [svn] r1829 - in rt/branches/PLATANO-EXPERIMENTAL-CSS:
. etc
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 11 03:29:43 EST 2004
Author: jesse
Date: Thu Nov 11 03:29:43 2004
New Revision: 1829
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/schema.SQLite
Log:
r9091 at tinbook: jesse | 2004-11-11T02:59:52.024824Z
r6092 at tinbook: jesse | 2004-10-23T21:46:47.129210Z
Updated SQLite schema to current RT 3.3 versions
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/schema.SQLite
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/schema.SQLite (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/schema.SQLite Thu Nov 11 03:29:43 2004
@@ -331,67 +331,93 @@
--- }}}
---- {{{ TicketCustomFieldValues
-CREATE TABLE TicketCustomFieldValues (
- id INTEGER PRIMARY KEY ,
- Ticket int NOT NULL ,
+
+# {{{ ObjectCustomFieldValues
+
+CREATE TABLE ObjectCustomFieldValues (
+ id INTEGER NOT NULL ,
CustomField int NOT NULL ,
+ ObjectType varchar(255) NOT NULL, # Final target of the Object
+ ObjectId int NOT NULL , # New -- Replaces Ticket
+
+ Current BOOL DEFAULT 1, # New -- whether the value was current
Content varchar(255) NULL ,
+ LargeContent LONGTEXT NULL, # New -- to hold 255+ strings
+ ContentType varchar(80) NULL, # New -- only text/* gets searched
+ ContentEncoding varchar(80) NULL , # New -- for binary Content
- Creator integer NULL ,
+ Creator integer NOT NULL DEFAULT 0 ,
Created DATETIME NULL ,
- LastUpdatedBy integer NULL ,
- LastUpdated DATETIME NULL
-
+ LastUpdatedBy integer NOT NULL DEFAULT 0 ,
+ LastUpdated DATETIME NULL ,
+ PRIMARY KEY (id)
) ;
-CREATE INDEX TicketCustomFieldValues1 ON TicketCustomFieldValues (CustomField,Ticket,Content);
-CREATE INDEX TicketCustomFieldValues2 ON TicketCustomFieldValues (CustomField,Ticket);
+CREATE INDEX ObjectCustomFieldValues1 ON ObjectCustomFieldValues (Content);
+CREATE INDEX ObjectCustomFieldValues2 ON ObjectCustomFieldValues (CustomField,ObjectType,ObjectId);
---- }}}
+# }}}
---- {{{ CustomFields
+# {{{ CustomFields
CREATE TABLE CustomFields (
- id INTEGER PRIMARY KEY ,
+ id INTEGER NOT NULL ,
Name varchar(200) NULL ,
- Type varchar(200) NULL ,
- MaxValues int NULL ,
- Pattern varchar(255) NULL ,
- LookupType varchar(255) NULL ,
+ Type varchar(200) NULL , # Changed -- 'Single' and 'Multiple' is moved out
+ MaxValues integer, # New -- was 'Single'(1) and 'Multiple'(0)
+ Pattern varchar(255) NULL , # New -- Must validate against this
+ Repeated int2 NOT NULL DEFAULT 0 , # New -- repeated table entry
Description varchar(255) NULL ,
- SortOrder integer NULL ,
+ SortOrder integer NOT NULL DEFAULT 0 ,
+ LookupType varchar(255) NOT NULL,
- Creator integer NULL ,
+ Creator integer NOT NULL DEFAULT 0 ,
Created DATETIME NULL ,
- LastUpdatedBy integer NULL ,
- LastUpdated DATETIME NULL ,
- Disabled int2 NOT NULL DEFAULT 0
-
+ LastUpdatedBy integer NOT NULL DEFAULT 0 ,
+ LastUpdated DATETIME NULL ,
+ Disabled int2 NOT NULL DEFAULT 0 ,
+ PRIMARY KEY (id)
) ;
---- }}}
+# }}}
---- {{{ CustomFieldValues
+# {{{ ObjectCustomFields
+
+CREATE TABLE ObjectCustomFields (
+ id INTEGER NOT NULL ,
+ CustomField int NOT NULL ,
+ ObjectId integer NOT NULL,
+ SortOrder integer NOT NULL DEFAULT 0 ,
+
+ Creator integer NOT NULL DEFAULT 0 ,
+ Created DATETIME NULL ,
+ LastUpdatedBy integer NOT NULL DEFAULT 0 ,
+ LastUpdated DATETIME NULL ,
+ PRIMARY KEY (id)
+) ;
+
+# }}}
+
+# {{{ CustomFieldValues
CREATE TABLE CustomFieldValues (
- id INTEGER PRIMARY KEY ,
+ id INTEGER NOT NULL ,
CustomField int NOT NULL ,
Name varchar(200) NULL ,
Description varchar(255) NULL ,
- SortOrder integer NULL ,
+ SortOrder integer NOT NULL DEFAULT 0 ,
- Creator integer NULL ,
+ Creator integer NOT NULL DEFAULT 0 ,
Created DATETIME NULL ,
- LastUpdatedBy integer NULL ,
- LastUpdated DATETIME NULL
-
+ LastUpdatedBy integer NOT NULL DEFAULT 0 ,
+ LastUpdated DATETIME NULL ,
+ PRIMARY KEY (id)
) ;
CREATE INDEX CustomFieldValues1 ON CustomFieldValues (CustomField);
-
---- }}}
+
+# }}}
--- {{{ Attributes
CREATE TABLE Attributes (
More information about the Rt-commit
mailing list