Browse files

Fixed bug in which there was a photo limit for slideshows relating to…

… the fact that the size of the custom field was limited to 255 characters. Converted to vclob.
  • Loading branch information...
1 parent 17f1fb8 commit 30de6b22daa4877af817d9ac1c453e761f10cce5 @byrnereese committed Jan 4, 2010
Showing with 16 additions and 4 deletions.
  1. +1 −1 Makefile.PL
  2. +14 −2 plugins/AssetGallery/config.yaml
  3. +1 −1 plugins/AssetGallery/lib/AssetGallery.pm
View
2 Makefile.PL
@@ -2,6 +2,6 @@ use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Asset Gallery',
- VERSION => '1.2',
+ VERSION => '1.2.1',
DISTNAME => 'AssetGallery',
);
View
16 plugins/AssetGallery/config.yaml
@@ -1,10 +1,22 @@
id: AssetGallery
name: Asset Gallery
-version: 1.2
+version: 1.2.1
description: "Introduces a new custom field that allows you to create a gallery of assets"
author_name: "Byrne Reese"
author_link: "http://www.endevver.com/"
-schema_version: 1
+schema_version: 3.1
+
+upgrade_functions:
+ column_def_type_change:
+ version_limit: 3.1
+ priority: 1
+ updater:
+ type: 'entry'
+ label: 'Converting vchar to vclob...'
+ condition: >
+ sub { $_[0]->slideshow ne '' }
+ sql: >
+ update mt_entry_meta set entry_meta_vclob = entry_meta_vchar where entry_meta_vchar is not null and entry_meta_type = 'field.slideshow'
customfield_types: $AssetGallery::AssetGallery::load_customfield_type
tags: $AssetGallery::AssetGallery::load_tags
View
2 plugins/AssetGallery/lib/AssetGallery.pm
@@ -56,7 +56,7 @@ sub load_customfield_type {
<div class="textarea-wrapper">&#60;<__trans phrase="Site Root">&#62; / <input type="text" name="options" value="<mt:var name="options" escape="html">" id="options" class="half-width" /></div>
<p class="hint"><__trans phrase="Please enter a full path to where files should be uploaded to. Applicable <a href="http://www.movabletype.org/documentation/appendices/archive-file-path-specifiers.html">file path specifiers</a> may be used."></p>
},
- column_def => 'vchar',
+ column_def => 'vclob',
order => 799,
no_default => 1
}

0 comments on commit 30de6b2

Please sign in to comment.