[Rt-commit] r19424 - rt/3.999/trunk/lib/RT/Model
sartak at bestpractical.com
sartak at bestpractical.com
Mon May 4 16:35:18 EDT 2009
Author: sartak
Date: Mon May 4 16:35:17 2009
New Revision: 19424
Modified:
rt/3.999/trunk/lib/RT/Model/Ticket.pm
Log:
Tidy ticket columns
Modified: rt/3.999/trunk/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Model/Ticket.pm (original)
+++ rt/3.999/trunk/lib/RT/Model/Ticket.pm Mon May 4 16:35:17 2009
@@ -86,50 +86,116 @@
use Jifty::DBI::Schema;
use Jifty::DBI::Record schema {
- column effective_id => max_length is 11, type is 'int', default is '0';
- column queue => references RT::Model::Queue;
- column type => max_length is 16, type is 'varchar(16)', default is '';
- column issue_statement => max_length is 11, type is 'int', default is '0';
- column resolution => max_length is 11, type is 'int', default is '0';
- column owner => references RT::Model::User;
- column subject => display_length is 50, max_length is 200, type is 'varchar(200)', default is '';
-
- column initial_priority => max_length is 11, type is 'int', default is '0';
- column final_priority => max_length is 11, type is 'int', default is '0';
- column priority => max_length is 11, type is 'int', default is '0';
-
- column time_estimated => max_length is 11, type is 'int',
- default is '0', label is _( 'time estimated' ), hints are _('in minutes');
- column time_worked => max_length is 11, type is 'int',
- default is '0', label is _( 'time worked' ), hints are _('in minutes');
- column time_left => max_length is 11, type is 'int',
- default is '0', label is _('time left'), hints are _('in minutes');
+ column effective_id =>
+ max_length is 11,
+ type is 'int',
+ default is '0';
+
+ column queue =>
+ references RT::Model::Queue;
+
+ column type =>
+ max_length is 16,
+ type is 'varchar(16)',
+ default is '';
+
+ column issue_statement =>
+ max_length is 11,
+ type is 'int',
+ default is '0';
+
+ column resolution =>
+ max_length is 11,
+ type is 'int',
+ default is '0';
+
+ column owner =>
+ references RT::Model::User;
+
+ column subject =>
+ display_length is 50,
+ max_length is 200,
+ type is 'varchar(200)',
+ default is '';
+
+ column initial_priority =>
+ max_length is 11,
+ type is 'int',
+ default is '0';
+
+ column final_priority =>
+ max_length is 11,
+ type is 'int',
+ default is '0';
+
+ column priority =>
+ max_length is 11,
+ type is 'int',
+ default is '0';
+
+ column time_estimated =>
+ max_length is 11,
+ type is 'int',
+ default is '0',
+ label is _( 'time estimated' ),
+ hints are _('in minutes');
+
+ column time_worked =>
+ max_length is 11,
+ type is 'int',
+ default is '0',
+ label is _( 'time worked' ),
+ hints are _('in minutes');
+
+ column time_left =>
+ max_length is 11,
+ type is 'int',
+ default is '0',
+ label is _('time left'),
+ hints are _('in minutes');
+
+ column status =>
+ max_length is 10,
+ type is 'varchar(10)',
+ default is '',
+ render_as 'Select';
- column status => max_length is 10, type is 'varchar(10)',
- default is '', render_as 'Select';
-
- column told => type is 'timestamp',
+ column told =>
+ type is 'timestamp',
filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
render_as 'DateTime',
label is _('Last Contact');
- column starts => type is 'timestamp',
+
+ column starts =>
+ type is 'timestamp',
filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
render_as 'DateTime',
label is _('Starts');
- column started => type is 'timestamp',
+
+ column started =>
+ type is 'timestamp',
filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
render_as 'DateTime',
label is _('Started');
- column due => type is 'timestamp',
+
+ column due =>
+ type is 'timestamp',
filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
render_as 'DateTime',
label is _('Due');
- column resolved => type is 'timestamp',
+
+ column resolved =>
+ type is 'timestamp',
filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
render_as 'DateTime',
label is _('Resolved');
- column disabled => max_length is 6, type is 'smallint', default is '0';
+
+ column disabled =>
+ max_length is 6,
+ type is 'smallint',
+ default is '0';
};
+
use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata map => {
created_by => 'creator',
created_on => 'created',
More information about the Rt-commit
mailing list