Changeset 2785
- Timestamp:
- 07/16/08 00:42:19 (2 months ago)
- Files:
-
- branches/feature-revision-histories/lib/MT/Entry.pm (modified) (1 diff)
- branches/feature-revision-histories/lib/MT/Object.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/feature-revision-histories/lib/MT/Entry.pm
r2645 r2785 28 28 'id' => 'integer not null auto_increment', 29 29 'blog_id' => 'integer not null', 30 'status' => 'smallint not null', 31 'author_id' => 'integer not null', 32 'allow_comments' => 'boolean', 33 'title' => 'string(255)', 34 'excerpt' => 'text', 35 'text' => 'text', 36 'text_more' => 'text', 37 'convert_breaks' => 'string(30)', 30 'status' => { 31 type => 'smallint', 32 not_null => 1, 33 label => 'Status' 34 }, 35 'author_id' => { 36 type => 'integer', 37 not_null => 1, 38 label => 'Author' 39 }, 40 'allow_comments' => { 41 type => 'boolean', 42 label => 'Accept Comments' 43 }, 44 'title' => { 45 type => 'string', 46 size => 255, 47 label => 'Title', 48 versioned => 1 49 }, 50 'excerpt' => { 51 type => 'text', 52 label => 'Excerpt', 53 versioned => 1 54 }, 55 'text' => { 56 type => 'text', 57 label => 'Body', 58 versioned => 1 59 }, 60 'text_more' => { 61 type => 'text', 62 label => 'Extended', 63 versioned => 1 64 }, 65 'convert_breaks' => { 66 type => 'string', 67 size => 30, 68 label => 'Format', 69 versioned => 1 70 }, 38 71 'to_ping_urls' => 'text', 39 72 'pinged_urls' => 'text', 40 'allow_pings' => 'boolean', 41 'keywords' => 'text', 73 'allow_pings' => { 74 type => 'boolean', 75 label => 'Accept Trackbacks' 76 }, 77 'keywords' => { 78 type => 'text', 79 label => 'Keywords', 80 versioned => 1 81 }, 42 82 'tangent_cache' => 'text', 43 'basename' => 'string(255)', 83 'basename' => { 84 type => 'string', 85 size => 255, 86 label => 'Basename', 87 versioned => 1 88 }, 44 89 'atom_id' => 'string(255)', 45 'authored_on' => 'datetime', 90 'authored_on' => { 91 type => 'datetime', 92 label => 'Publish Date', 93 versioned => 1 94 }, 46 95 'week_number' => 'integer', 47 96 'template_id' => 'integer', branches/feature-revision-histories/lib/MT/Object.pm
r2615 r2785 1121 1121 return undef if !$defs; 1122 1122 my ($key) = keys %$defs; 1123 if (!(ref $defs->{$key})) {1123 unless ($props->{column_defs_parsed}) { 1124 1124 $obj->__parse_defs($props->{column_defs}); 1125 } 1126 $props->{column_defs}; 1125 $props->{column_defs_parsed} = 1; 1126 } 1127 1128 return $props->{column_defs}; 1127 1129 } 1128 1130 … … 1152 1154 $def{key} = 1 if ($props->{primary_key}) && ($props->{primary_key} eq $col); 1153 1155 $def{auto} = 1 if $def =~ m/\bauto[_ ]increment\b/i; 1156 $def{versioned} = 1 if $def =~ m/\bversioned\b/i; 1154 1157 $def{default} = $props->{defaults}{$col} 1155 1158 if exists $props->{defaults}{$col};
