[Rt-commit] r8953 - in rt/branches/3.7-EXPERIMENTAL: . etc
sartak at bestpractical.com
sartak at bestpractical.com
Thu Sep 6 16:29:50 EDT 2007
Author: sartak
Date: Thu Sep 6 16:29:43 2007
New Revision: 8953
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/etc/schema.Informix
rt/branches/3.7-EXPERIMENTAL/etc/schema.Oracle
rt/branches/3.7-EXPERIMENTAL/etc/schema.Pg
rt/branches/3.7-EXPERIMENTAL/etc/schema.SQLite
rt/branches/3.7-EXPERIMENTAL/etc/schema.Sybase
rt/branches/3.7-EXPERIMENTAL/etc/schema.mysql
rt/branches/3.7-EXPERIMENTAL/lib/RT/User.pm
Log:
r42393 at onn: sartak | 2007-09-06 16:20:51 -0400
Add a PreferredKey attribute to users
Modified: rt/branches/3.7-EXPERIMENTAL/etc/schema.Informix
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/schema.Informix (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/schema.Informix Thu Sep 6 16:29:43 2007
@@ -209,6 +209,7 @@
Country VARCHAR(50),
Timezone VARCHAR(50),
PGPKey BYTE,
+ PreferredKey BYTE,
Creator INTEGER DEFAULT 0 NOT NULL,
Created DATETIME YEAR TO SECOND,
LastUpdatedBy INTEGER DEFAULT 0 NOT NULL,
Modified: rt/branches/3.7-EXPERIMENTAL/etc/schema.Oracle
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/schema.Oracle (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/schema.Oracle Thu Sep 6 16:29:43 2007
@@ -218,6 +218,7 @@
Country VARCHAR2(50),
Timezone VARCHAR2(50),
PGPKey CLOB,
+ PreferredKey CLOB,
Creator NUMBER(11,0) DEFAULT 0 NOT NULL,
Created DATE,
LastUpdatedBy NUMBER(11,0) DEFAULT 0 NOT NULL,
Modified: rt/branches/3.7-EXPERIMENTAL/etc/schema.Pg
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/schema.Pg (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/schema.Pg Thu Sep 6 16:29:43 2007
@@ -353,6 +353,7 @@
Country varchar(50) NULL ,
Timezone varchar(50) NULL ,
PGPKey text NULL,
+ PreferredKey text NULL,
Creator integer NOT NULL DEFAULT 0 ,
Created TIMESTAMP NULL ,
Modified: rt/branches/3.7-EXPERIMENTAL/etc/schema.SQLite
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/schema.SQLite (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/schema.SQLite Thu Sep 6 16:29:43 2007
@@ -236,6 +236,7 @@
Country varchar(50) NULL ,
Timezone char(50) NULL ,
PGPKey text NULL,
+ PreferredKey text NULL,
Creator integer NULL ,
Created DATETIME NULL ,
Modified: rt/branches/3.7-EXPERIMENTAL/etc/schema.Sybase
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/schema.Sybase (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/schema.Sybase Thu Sep 6 16:29:43 2007
@@ -247,6 +247,7 @@
Country varchar(50) NULL ,
Timezone varchar(50) NULL ,
PGPKey text NULL,
+ PreferredKey text NULL,
Creator integer NOT NULL ,
Created DATETIME NULL ,
Modified: rt/branches/3.7-EXPERIMENTAL/etc/schema.mysql
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/schema.mysql (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/schema.mysql Thu Sep 6 16:29:43 2007
@@ -247,6 +247,7 @@
Country varchar(50) NULL ,
Timezone varchar(50) NULL ,
PGPKey text NULL,
+ PreferredKey text NULL,
Creator integer NOT NULL DEFAULT 0 ,
Created DATETIME NULL ,
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/User.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/User.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/User.pm Thu Sep 6 16:29:43 2007
@@ -118,6 +118,7 @@
varchar(50) 'Country'.
varchar(50) 'Timezone'.
text 'PGPKey'.
+ text 'PreferredKey'.
=cut
@@ -156,6 +157,7 @@
Country => '',
Timezone => '',
PGPKey => '',
+ PreferredKey => '',
@_);
$self->SUPER::Create(
@@ -188,6 +190,7 @@
Country => $args{'Country'},
Timezone => $args{'Timezone'},
PGPKey => $args{'PGPKey'},
+ PreferredKey => $args{'PreferredKey'},
);
}
@@ -724,6 +727,22 @@
=cut
+=head2 PreferredKey
+
+Returns the current value of PreferredKey.
+(In the database, PreferredKey is stored as text.)
+
+
+
+=head2 SetPreferredKey VALUE
+
+
+Set PreferredKey to VALUE.
+Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
+(In the database, PreferredKey will be stored as a text.)
+
+
+=cut
=head2 Creator
@@ -825,6 +844,8 @@
{read => 1, write => 1, sql_type => 12, length => 50, is_blob => 0, is_numeric => 0, type => 'varchar(50)', default => ''},
PGPKey =>
{read => 1, write => 1, sql_type => -4, length => 0, is_blob => 1, is_numeric => 0, type => 'text', default => ''},
+ PreferredKey =>
+ {read => 1, write => 1, sql_type => -4, length => 0, is_blob => 1, is_numeric => 0, type => 'text', default => ''},
Creator =>
{read => 1, auto => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
Created =>
More information about the Rt-commit
mailing list