[Rt-commit] [svn] r1861 - in rt/branches/PLATANO-EXPERIMENTAL-CSS:
. bin docs/design_docs spec
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 11 03:47:00 EST 2004
Author: jesse
Date: Thu Nov 11 03:47:00 2004
New Revision: 1861
Added:
rt/branches/PLATANO-EXPERIMENTAL-CSS/docs/design_docs/3.3-schema-redesign.txt
Removed:
rt/branches/PLATANO-EXPERIMENTAL-CSS/spec/
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in
Log:
r9123 at tinbook: jesse | 2004-11-11T04:07:44.681509Z
r8934 at tinbook: jesse | 2004-11-08T13:12:15.840028Z
r8929 at tinbook (orig r1748): autrijus | 2004-11-08T12:52:03.511429Z
r1746 at not: autrijus | 2004-11-08T08:27:45.676219Z
* V7 of redesign schema, incoporating many more comments and
the new, clkao-inspired fields.
r8930 at tinbook (orig r1749): autrijus | 2004-11-08T12:52:36.289718Z
r1747 at not: autrijus | 2004-11-08T08:28:53.206839Z
* move the design spec from spec/ under the docs/design_docs/ space where it belongs.
r8931 at tinbook (orig r1750): autrijus | 2004-11-08T12:53:00.482208Z
r1748 at not: autrijus | 2004-11-08T08:29:17.162697Z
* remove the now-empty spec/ directory.
r8932 at tinbook (orig r1751): autrijus | 2004-11-08T12:53:30.365957Z
r8933 at tinbook (orig r1752): autrijus | 2004-11-08T12:53:51.280973Z
r3280 at not: autrijus | 2004-11-08T12:13:28.529608Z
* make kill -HUP work sanely.
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in Thu Nov 11 03:47:00 2004
@@ -56,7 +56,24 @@
use Socket;
$SIG{CHLD} = "IGNORE"; # reap child processes
-$SIG{HUP} = sub { exec($^X, $0, @ARGV) };
+$SIG{HUP} = sub {
+ # on a "kill -HUP", we first close our socket handles.
+ close Remote;
+ close HTTPDaemon;
+
+ # and then, on systems implementing fork(), we make sure
+ # we are running with a new pid, so another -HUP will still
+ # work on the new process.
+ require Config;
+ if ($Config::Config{d_fork} and my $pid = fork()) {
+ # finally, allow ^C on the parent process to terminate
+ # the children.
+ waitpid($pid, 0); exit;
+ }
+
+ # do the exec. if $0 is not executable, try running it with $^X.
+ exec { $0 } ( ((-x $0) ? () : ($^X)), $0, @ARGV );
+};
RT::Init();
Added: rt/branches/PLATANO-EXPERIMENTAL-CSS/docs/design_docs/3.3-schema-redesign.txt
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/docs/design_docs/3.3-schema-redesign.txt Thu Nov 11 03:47:00 2004
@@ -0,0 +1,57 @@
+-- --------------------------------------- --
+-- RT 3.3 Schema redesign v7: 2004-11-08 --
+-- --------------------------------------- --
+
+TABLE CustomFields (
+ id INTEGER NOT NULL AUTO_INCREMENT,
+ Name varchar(200) NULL ,
+ Type varchar(200) NULL , -- Changed: see MaxValues below
+ MaxValues integer, -- New: 1 = Single, 0 = Multiple
+ Pattern varchar(255) NULL , -- New: regex to validate against
+ Repeated int2 NOT NULL DEFAULT 0 , -- New: repeated table entry
+ LookupType varchar(255) NOT NULL, -- New: "RT::Queue-RT::Ticket"
+ Description varchar(255) NULL ,
+ SortOrder integer NOT NULL DEFAULT 0 , -- only used on "pick CF" screen
+)
+
+-- This table replaces TicketCustomFields
+TABLE ObjectCustomFields (
+ id INTEGER NOT NULL AUTO_INCREMENT,
+ CustomField int NOT NULL , -- CustomField ID
+ ObjectId integer NOT NULL, -- Final id of toplevel parent, or
+ -- the object itself if ParentType
+ -- is empty; 0 means global as usual
+ SortOrder integer NOT NULL DEFAULT 0 , -- this is used to sort the CFs
+);
+
+-- This table replaces TicketCustomFieldValues
+TABLE ObjectCustomFieldValues (
+ id INTEGER NOT NULL AUTO_INCREMENT,
+ CustomField int NOT NULL ,
+ ObjectType varchar(255) NOT NULL, -- Final target of the Object
+ ObjectId int NOT NULL , -- New: replaces the "Ticket" field
+ SortOrder integer NOT NULL DEFAULT 0 , -- New: for Repeated fields
+
+ Content varchar(255) NULL ,
+ LargeContent LONGTEXT NULL, -- New: data longer than 255 bytes
+ ContentType varchar(80) NULL, -- New: MIME type of LargeContent
+ ContentEncoding varchar(80) NULL , -- New: for binary LargeContent
+ Disabled int2 NOT NULL DEFAULT 0 , -- New: whether this is deleted
+)
+
+TABLE Transactions (
+ id INTEGER NOT NULL AUTO_INCREMENT,
+ ObjectType varchar(255) NULL, -- Final target of the Object
+ ObjectId integer NOT NULL DEFAULT 0 , -- New: replaces the "Ticket" field
+ TimeTaken integer NOT NULL DEFAULT 0 ,
+ Type varchar(20) NULL ,
+ Field varchar(40) NULL ,
+ OldValue varchar(255) NULL ,
+ NewValue varchar(255) NULL ,
+ ReferenceType varchar(255) NULL, -- NeW: Currently "RT::OCFV" only
+ OldReference integer NULL , -- New: Id of ReferenceType
+ NewReference integer NULL , -- New: Id of ReferenceType
+ Data varchar(255) NULL ,
+)
+
+-- vim: filetype=mysql shiftwidth=4 expandtab
More information about the Rt-commit
mailing list