Changeset 2369 for branches/release-38/lib/MT/Object.pm
- Timestamp:
- 05/16/08 22:44:31 (19 months ago)
- Files:
-
- 1 modified
-
branches/release-38/lib/MT/Object.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
