summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2012-03-31 22:26:10 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-03-31 22:29:09 -0400
commitf2e01ab7d55d76615007f75fd6aaeda2e1f22628 (patch)
treed973321bbe8a60620a6691b832453a4bf9fda070 /lib/class/update.class.php
parent6f8673b5c72a956ed69269d407a0b512db0716cc (diff)
downloadampache-f2e01ab7d55d76615007f75fd6aaeda2e1f22628.tar.gz
ampache-f2e01ab7d55d76615007f75fd6aaeda2e1f22628.tar.bz2
ampache-f2e01ab7d55d76615007f75fd6aaeda2e1f22628.zip
Increase the size of the mbid column in artist
Picard is putting multiple MBIDs in the tags now that MusicBrainz' new schema is live. The easiest way to deal with this is to store all of them as an aggregate value and match against that.
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php15
1 files changed, 15 insertions, 0 deletions
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
?>