|
Revision 1836, 365 bytes
(checked in by bchoate, 20 months ago)
|
|
Updates to support expressing meta columns in 'column_defs' structure.
Changes to registry lookup to support handler declarations.
Added meta type aliases for MT type names ('string', 'integer', etc.). BugId:68749
|
| Line | |
|---|
| 1 | |
|---|
| 2 | package MT::Awesome; |
|---|
| 3 | |
|---|
| 4 | our @ISA = qw( MT::Object ); |
|---|
| 5 | |
|---|
| 6 | __PACKAGE__->install_properties({ |
|---|
| 7 | column_defs => { |
|---|
| 8 | id => 'integer not null auto_increment', |
|---|
| 9 | title => 'string(255)', |
|---|
| 10 | file => 'string(255)', |
|---|
| 11 | mime_type => 'string meta', |
|---|
| 12 | }, |
|---|
| 13 | meta => 1, |
|---|
| 14 | class_type => 'foo', |
|---|
| 15 | datasource => 'awesome', |
|---|
| 16 | primary_key => 'id', |
|---|
| 17 | }); |
|---|
| 18 | |
|---|
| 19 | 1; |
|---|