Changeset 2369

Show
Ignore:
Timestamp:
05/16/08 22:44:31 (18 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

Location:
branches/release-38/lib/MT
Files:
3 modified

Legend:

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

    r2281 r2369  
    3636    %Types = ( 
    3737        TYPE_VCHAR()             => "vchar", 
    38         TYPE_VCHAR_INDEXED()     => "vchar_indexed", 
     38        TYPE_VCHAR_INDEXED()     => "vchar_idx", 
    3939        TYPE_VINTEGER()          => "vinteger", 
    40         TYPE_VINTEGER_INDEXED()  => "vinteger_indexed", 
     40        TYPE_VINTEGER_INDEXED()  => "vinteger_idx", 
    4141        TYPE_VDATETIME()         => "vdatetime", 
    42         TYPE_VDATETIME_INDEXED() => "vdatetime_indexed", 
     42        TYPE_VDATETIME_INDEXED() => "vdatetime_idx", 
    4343        TYPE_VFLOAT()            => "vfloat", 
    44         TYPE_VFLOAT_INDEXED()    => "vfloat_indexed", 
     44        TYPE_VFLOAT_INDEXED()    => "vfloat_idx", 
    4545        TYPE_VBLOB()             => "vblob", 
    4646        TYPE_VCLOB()             => "vclob", 
     
    7070##         id      => 123, 
    7171##         type_id => 1, 
    72 ##         type    => 'vchar_indexed', 
     72##         type    => 'vchar_idx', 
    7373##         pkg     => 'MT::Foo', 
    7474##         zip     => $cfg,   ## optional 
     
    318318=item * type 
    319319 
    320 The data type of the metadata field. One of: C<vchar>, C<vchar_indexed>, or 
     320The data type of the metadata field. One of: C<vchar>, C<vchar_idx>, or 
    321321C<vblob>. 
    322322 
     
    386386=item * type 
    387387 
    388 The data type of the metadata field. One of: C<vchar>, C<vchar_indexed>, or 
     388The data type of the metadata field. One of: C<vchar>, C<vchar_idx>, or 
    389389C<vblob>. 
    390390 
  • 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 
  • branches/release-38/lib/MT/ObjectTag.pm

    r1609 r2369  
    2929        }, 
    3030        # For tag count 
    31         blog_ds_object_tag => { 
     31        blog_ds_obj_tag => { 
    3232            columns => ['blog_id', 'object_datasource', 'object_id', 'tag_id'], 
    3333        },