diff options
-rwxr-xr-x | docs/CHANGELOG | 2 | ||||
-rw-r--r-- | lib/class/update.class.php | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 036d72c4..d3dd97d0 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.6-Alpha2 + - Fixed an issue with compound artists in media with MusicBrainz tags + (reported by greengeek) - Fixed an issue with filename pattern matching when patterns contained characters that are part of regex syntax (such as -) - Fixed display of logic operator in rules (reported by Twister) diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 76e8bd3c..c1a6c3fb 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -374,6 +374,9 @@ class Update { $update_string = '- Allow long sessionids in tmp_playlist table.<br />'; $version[] = array('version' => '360009', 'description' => $update_string); + $update_string = '- Allow compound MBIDs in the artist table.<br />'; + $version[] = array('version' => '360010', 'description' => $update_string); + return $version; } // populate_version @@ -2075,5 +2078,17 @@ class Update { self::set_version('db_version','360009'); } + /** + * update_360010 + * MBz NGS means collaborations have more than one MBID (the ones + * belonging to the underlying artists). We need a bigger column. + */ + public static function update_360010() { + $sql = 'ALTER TABLE `artist` CHANGE `mbid` `mbid` VARCHAR(1369)'; + $db_results = Dba::write($sql); + + self::set_version('db_version', '360010'); + } + } // end update class ?> |