Show
Ignore:
Timestamp:
05/16/08 22:44:31 (19 months ago)
Author:
mpaschal
Message:

Shorten these column and index names
(Commit Fumiaki's change)
NOTE that manual SQL attached to case #79744 is required to upgrade from beta 4 or 5

http://bugs.movabletype.org/default.asp?79744

BugzID: 79744

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/lib/MT/Object.pm

    r2353 r2369  
    474474            type              => 'string(75) not null', 
    475475            vchar             => 'string(255)', 
    476             vchar_indexed     => 'string(255)', 
     476            vchar_idx         => 'string(255)', 
    477477            vdatetime         => 'datetime', 
    478             vdatetime_indexed => 'datetime', 
     478            vdatetime_idx    => 'datetime', 
    479479            vinteger          => 'integer', 
    480             vinteger_indexed  => 'integer', 
     480            vinteger_idx      => 'integer', 
    481481            vfloat            => 'float', 
    482             vfloat_indexed    => 'float', 
     482            vfloat_idx        => 'float', 
    483483            vblob             => 'blob', 
    484484            vclob             => 'text', 
     
    487487            type 
    488488            vchar 
    489             vchar_indexed 
     489            vchar_idx 
    490490            vdatetime 
    491             vdatetime_indexed 
     491            vdatetime_idx 
    492492            vinteger 
    493             vinteger_indexed 
     493            vinteger_idx 
    494494            vfloat 
    495             vfloat_indexed 
     495            vfloat_idx 
    496496            vblob 
    497497            vclob 
     
    500500            $id_field => 1, 
    501501            id_type   => { columns => [ $id_field, 'type' ] }, 
    502             id_type_vchar => { columns => [ $id_field, 'type', 'vchar_indexed' ] }, 
    503             id_type_vdatetime => { columns => [ $id_field, 'type', 
    504                 'vdatetime_indexed' ] }, 
    505             id_type_vinteger => { columns => [ $id_field, 'type', 
    506                 'vinteger_indexed' ] }, 
    507             id_type_vfloat => { columns => [ $id_field, 'type', 
    508                 'vfloat_indexed' ] }, 
     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' ] }, 
    509509        }, 
    510510        primary_key => [ $id_field, 'type' ], 
     
    23782378 
    23792379In this form, the storage type is explicitly declared, so the metadata 
    2380 is stored into the appropriate column (vinteger_indexed and vchar_indexed 
     2380is stored into the appropriate column (vinteger_idx and vchar_idx 
    23812381respectively). 
    23822382