Bug 2046 - Suggestions: Title Field too small
[koha.git] / installer / data / mysql / updatedatabase.pl
index 7c97a51..18703d2 100755 (executable)
@@ -6771,6 +6771,13 @@ if ( CheckVersion($DBversion) ) {
    SetVersion ($DBversion);
 }
 
+$DBversion = "XXX";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q{ALTER TABLE suggestions CHANGE COLUMN title title VARCHAR(255) DEFAULT NULL;});
+    print "Upgrade to $DBversion done (Bug 2046 - increasing title column length for suggestions)\n";
+    SetVersion ($DBversion);
+}
+
 
 =head1 FUNCTIONS