|
Revision 1523, 0.8 kB
(checked in by bchoate, 21 months ago)
|
|
New concatenated indexes. Schema bump to 4.0042
|
-
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::ObjectAsset; |
|---|
| 8 | |
|---|
| 9 | use strict; |
|---|
| 10 | use MT::Blog; |
|---|
| 11 | use base qw( MT::Object ); |
|---|
| 12 | |
|---|
| 13 | __PACKAGE__->install_properties({ |
|---|
| 14 | column_defs => { |
|---|
| 15 | id => 'integer not null auto_increment', |
|---|
| 16 | blog_id => 'integer', |
|---|
| 17 | object_id => 'integer not null', |
|---|
| 18 | object_ds => 'string(50) not null', |
|---|
| 19 | asset_id => 'integer not null', |
|---|
| 20 | }, |
|---|
| 21 | indexes => { |
|---|
| 22 | blog_id => 1, |
|---|
| 23 | object_id => 1, |
|---|
| 24 | asset_id => 1, |
|---|
| 25 | object_ds => 1, |
|---|
| 26 | }, |
|---|
| 27 | child_of => 'MT::Blog', |
|---|
| 28 | datasource => 'objectasset', |
|---|
| 29 | primary_key => 'id', |
|---|
| 30 | cacheable => 0, |
|---|
| 31 | }); |
|---|
| 32 | |
|---|
| 33 | sub class_label { |
|---|
| 34 | MT->translate("Asset Placement"); |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | 1; |
|---|