|
Revision 1722, 0.8 kB
(checked in by bchoate, 20 months ago)
|
|
Change for indexes for TheSchwartz::Error.
|
-
Property svn:keywords set to
Id Revision
|
| Line | |
|---|
| 1 | # Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd. |
|---|
| 2 | # This program is distributed under the terms of the |
|---|
| 3 | # GNU General Public License, version 2. |
|---|
| 4 | # |
|---|
| 5 | # $Id$ |
|---|
| 6 | |
|---|
| 7 | package MT::TheSchwartz::Error; |
|---|
| 8 | |
|---|
| 9 | use strict; |
|---|
| 10 | use base qw( MT::Object ); |
|---|
| 11 | |
|---|
| 12 | __PACKAGE__->install_properties({ |
|---|
| 13 | column_defs => { |
|---|
| 14 | jobid => 'integer not null', # bigint unsigned not null |
|---|
| 15 | funcid => 'integer not null', # int unsigned not null default 0 |
|---|
| 16 | message => 'string(255) not null', # varchar(255) not null |
|---|
| 17 | error_time => 'integer not null', # integer unsigned not null |
|---|
| 18 | }, |
|---|
| 19 | datasource => 'ts_error', |
|---|
| 20 | indexes => { |
|---|
| 21 | jobid => 1, |
|---|
| 22 | funcid_time => { |
|---|
| 23 | columns => ['funcid', 'error_time'], |
|---|
| 24 | }, |
|---|
| 25 | }, |
|---|
| 26 | defaults => { |
|---|
| 27 | funcid => 0, |
|---|
| 28 | }, |
|---|
| 29 | cacheable => 0, |
|---|
| 30 | }); |
|---|
| 31 | |
|---|
| 32 | sub class_label { |
|---|
| 33 | MT->translate("Job Error"); |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | 1; |
|---|