Changeset 2369
- Timestamp:
- 05/16/08 22:44:31 (18 months ago)
- Location:
- branches/release-38/lib/MT
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-38/lib/MT/Meta.pm
r2281 r2369 36 36 %Types = ( 37 37 TYPE_VCHAR() => "vchar", 38 TYPE_VCHAR_INDEXED() => "vchar_i ndexed",38 TYPE_VCHAR_INDEXED() => "vchar_idx", 39 39 TYPE_VINTEGER() => "vinteger", 40 TYPE_VINTEGER_INDEXED() => "vinteger_i ndexed",40 TYPE_VINTEGER_INDEXED() => "vinteger_idx", 41 41 TYPE_VDATETIME() => "vdatetime", 42 TYPE_VDATETIME_INDEXED() => "vdatetime_i ndexed",42 TYPE_VDATETIME_INDEXED() => "vdatetime_idx", 43 43 TYPE_VFLOAT() => "vfloat", 44 TYPE_VFLOAT_INDEXED() => "vfloat_i ndexed",44 TYPE_VFLOAT_INDEXED() => "vfloat_idx", 45 45 TYPE_VBLOB() => "vblob", 46 46 TYPE_VCLOB() => "vclob", … … 70 70 ## id => 123, 71 71 ## type_id => 1, 72 ## type => 'vchar_i ndexed',72 ## type => 'vchar_idx', 73 73 ## pkg => 'MT::Foo', 74 74 ## zip => $cfg, ## optional … … 318 318 =item * type 319 319 320 The data type of the metadata field. One of: C<vchar>, C<vchar_i ndexed>, or320 The data type of the metadata field. One of: C<vchar>, C<vchar_idx>, or 321 321 C<vblob>. 322 322 … … 386 386 =item * type 387 387 388 The data type of the metadata field. One of: C<vchar>, C<vchar_i ndexed>, or388 The data type of the metadata field. One of: C<vchar>, C<vchar_idx>, or 389 389 C<vblob>. 390 390 -
branches/release-38/lib/MT/Object.pm
r2353 r2369 474 474 type => 'string(75) not null', 475 475 vchar => 'string(255)', 476 vchar_i ndexed=> 'string(255)',476 vchar_idx => 'string(255)', 477 477 vdatetime => 'datetime', 478 vdatetime_i ndexed=> 'datetime',478 vdatetime_idx => 'datetime', 479 479 vinteger => 'integer', 480 vinteger_i ndexed=> 'integer',480 vinteger_idx => 'integer', 481 481 vfloat => 'float', 482 vfloat_i ndexed=> 'float',482 vfloat_idx => 'float', 483 483 vblob => 'blob', 484 484 vclob => 'text', … … 487 487 type 488 488 vchar 489 vchar_i ndexed489 vchar_idx 490 490 vdatetime 491 vdatetime_i ndexed491 vdatetime_idx 492 492 vinteger 493 vinteger_i ndexed493 vinteger_idx 494 494 vfloat 495 vfloat_i ndexed495 vfloat_idx 496 496 vblob 497 497 vclob … … 500 500 $id_field => 1, 501 501 id_type => { columns => [ $id_field, 'type' ] }, 502 id_type_vchar => { columns => [ $id_field, 'type', 'vchar_i ndexed' ] },503 id_type_vd atetime=> { columns => [ $id_field, 'type',504 'vdatetime_i ndexed' ] },505 id_type_vint eger=> { columns => [ $id_field, 'type',506 'vinteger_i ndexed' ] },507 id_type_vfl oat => { columns => [ $id_field, 'type',508 'vfloat_i ndexed' ] },502 id_type_vchar => { columns => [ $id_field, 'type', 'vchar_idx' ] }, 503 id_type_vdt => { columns => [ $id_field, 'type', 504 'vdatetime_idx' ] }, 505 id_type_vint => { columns => [ $id_field, 'type', 506 'vinteger_idx' ] }, 507 id_type_vflt => { columns => [ $id_field, 'type', 508 'vfloat_idx' ] }, 509 509 }, 510 510 primary_key => [ $id_field, 'type' ], … … 2378 2378 2379 2379 In this form, the storage type is explicitly declared, so the metadata 2380 is stored into the appropriate column (vinteger_i ndexed and vchar_indexed2380 is stored into the appropriate column (vinteger_idx and vchar_idx 2381 2381 respectively). 2382 2382 -
branches/release-38/lib/MT/ObjectTag.pm
r1609 r2369 29 29 }, 30 30 # For tag count 31 blog_ds_obj ect_tag => {31 blog_ds_obj_tag => { 32 32 columns => ['blog_id', 'object_datasource', 'object_id', 'tag_id'], 33 33 },
