[Rt-commit] rt branch, 4.0/fix-created-lastupdated, created. rt-4.0.0rc5-3-gd7c0b8f
Kevin Falcone
falcone at bestpractical.com
Mon Feb 21 22:06:16 EST 2011
The branch, 4.0/fix-created-lastupdated has been created
at d7c0b8ff4ac83584d89c5ad54b11eccac379f1ea (commit)
- Log -----------------------------------------------------------------
commit d7c0b8ff4ac83584d89c5ad54b11eccac379f1ea
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Mon Feb 21 21:48:20 2011 -0500
Restore the code to set LastUpdated/Create on Groups/ACEs
Massage 1b803767a6b33966e3fb655b1a08d8e4d94574ef
This commit added LastUpdated/LastUpdatedBy/Created/Creator to
Groups/GroupMembers/ACL and was dropped from the _Overlay merge (in fact
we brought back the Delegated/DelegatedBy documents for ACE by accident.
diff --git a/lib/RT/ACE.pm b/lib/RT/ACE.pm
index c2a3199..d8a4187 100644
--- a/lib/RT/ACE.pm
+++ b/lib/RT/ACE.pm
@@ -88,8 +88,6 @@ use vars qw (
# Queue rights are the sort of queue rights that can only be granted
# to real people or groups
-
-
=cut
@@ -686,38 +684,34 @@ Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
=cut
-=head2 DelegatedBy
-
-Returns the current value of DelegatedBy.
-(In the database, DelegatedBy is stored as int(11).)
+=head2 Creator
+Returns the current value of Creator.
+(In the database, Creator is stored as int(11).)
-
-=head2 SetDelegatedBy VALUE
+=cut
-Set DelegatedBy to VALUE.
-Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
-(In the database, DelegatedBy will be stored as a int(11).)
+=head2 Created
+Returns the current value of Created.
+(In the database, Created is stored as datetime.)
=cut
-=head2 DelegatedFrom
+=head2 LastUpdatedBy
-Returns the current value of DelegatedFrom.
-(In the database, DelegatedFrom is stored as int(11).)
+Returns the current value of LastUpdatedBy.
+(In the database, LastUpdatedBy is stored as int(11).)
+=cut
-=head2 SetDelegatedFrom VALUE
-
-
-Set DelegatedFrom to VALUE.
-Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
-(In the database, DelegatedFrom will be stored as a int(11).)
+=head2 LastUpdated
+Returns the current value of LastUpdated.
+(In the database, LastUpdated is stored as datetime.)
=cut
@@ -738,10 +732,14 @@ sub _CoreAccessible {
{read => 1, write => 1, sql_type => 12, length => 25, is_blob => 0, is_numeric => 0, type => 'varchar(25)', default => ''},
ObjectId =>
{read => 1, write => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
- DelegatedBy =>
- {read => 1, write => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
- DelegatedFrom =>
- {read => 1, write => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ Creator =>
+ {read => 1, auto => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ Created =>
+ {read => 1, auto => 1, sql_type => 11, length => 0, is_blob => 0, is_numeric => 0, type => 'datetime', default => ''},
+ LastUpdatedBy =>
+ {read => 1, auto => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ LastUpdated =>
+ {read => 1, auto => 1, sql_type => 11, length => 0, is_blob => 0, is_numeric => 0, type => 'datetime', default => ''},
}
};
diff --git a/lib/RT/Group.pm b/lib/RT/Group.pm
index d1ca8ff..1ee0591 100644
--- a/lib/RT/Group.pm
+++ b/lib/RT/Group.pm
@@ -1331,6 +1331,42 @@ Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
=cut
+=head2 Creator
+
+Returns the current value of Creator.
+(In the database, Creator is stored as int(11).)
+
+
+=cut
+
+
+=head2 Created
+
+Returns the current value of Created.
+(In the database, Created is stored as datetime.)
+
+
+=cut
+
+
+=head2 LastUpdatedBy
+
+Returns the current value of LastUpdatedBy.
+(In the database, LastUpdatedBy is stored as int(11).)
+
+
+=cut
+
+
+=head2 LastUpdated
+
+Returns the current value of LastUpdated.
+(In the database, LastUpdated is stored as datetime.)
+
+
+=cut
+
+
sub _CoreAccessible {
{
@@ -1347,6 +1383,14 @@ sub _CoreAccessible {
{read => 1, write => 1, sql_type => 12, length => 64, is_blob => 0, is_numeric => 0, type => 'varchar(64)', default => ''},
Instance =>
{read => 1, write => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => ''},
+ Creator =>
+ {read => 1, auto => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ Created =>
+ {read => 1, auto => 1, sql_type => 11, length => 0, is_blob => 0, is_numeric => 0, type => 'datetime', default => ''},
+ LastUpdatedBy =>
+ {read => 1, auto => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ LastUpdated =>
+ {read => 1, auto => 1, sql_type => 11, length => 0, is_blob => 0, is_numeric => 0, type => 'datetime', default => ''},
}
};
diff --git a/lib/RT/GroupMember.pm b/lib/RT/GroupMember.pm
index 08d0578..84887ee 100644
--- a/lib/RT/GroupMember.pm
+++ b/lib/RT/GroupMember.pm
@@ -429,6 +429,42 @@ Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
=cut
+=head2 Creator
+
+Returns the current value of Creator.
+(In the database, Creator is stored as int(11).)
+
+
+=cut
+
+
+=head2 Created
+
+Returns the current value of Created.
+(In the database, Created is stored as datetime.)
+
+
+=cut
+
+
+=head2 LastUpdatedBy
+
+Returns the current value of LastUpdatedBy.
+(In the database, LastUpdatedBy is stored as int(11).)
+
+
+=cut
+
+
+=head2 LastUpdated
+
+Returns the current value of LastUpdated.
+(In the database, LastUpdated is stored as datetime.)
+
+
+=cut
+
+
sub _CoreAccessible {
{
@@ -439,6 +475,14 @@ sub _CoreAccessible {
{read => 1, write => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
MemberId =>
{read => 1, write => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ Creator =>
+ {read => 1, auto => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ Created =>
+ {read => 1, auto => 1, sql_type => 11, length => 0, is_blob => 0, is_numeric => 0, type => 'datetime', default => ''},
+ LastUpdatedBy =>
+ {read => 1, auto => 1, sql_type => 4, length => 11, is_blob => 0, is_numeric => 1, type => 'int(11)', default => '0'},
+ LastUpdated =>
+ {read => 1, auto => 1, sql_type => 11, length => 0, is_blob => 0, is_numeric => 0, type => 'datetime', default => ''},
}
};
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list