diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-05 15:43:44 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-05 15:43:44 +0000 |
commit | e25a9d5480b6f12584a1297eb907906436f52da6 (patch) | |
tree | b888fe36c538d527e77eb9769af0d257ef337fe3 /lib/class/update.class.php | |
parent | 181c3a17f8c5a9ac194f6c522d79a4b8bc8317b2 (diff) | |
download | ampache-e25a9d5480b6f12584a1297eb907906436f52da6.tar.gz ampache-e25a9d5480b6f12584a1297eb907906436f52da6.tar.bz2 ampache-e25a9d5480b6f12584a1297eb907906436f52da6.zip |
I swear the last db upgrade of this release... at least it better be or I will have to beat myself up
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index e6dfbb84..597a37cf 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -259,6 +259,10 @@ class Update { $version[] = array('version' => '332006','description' => $update_string); + $update_string = '- Alters the Dynamic Song field to be TEXT instead of Varchar (varchar was not long enough).'; + + $version[] = array('version' => '332007','description' => $update_string); + return $version; } // populate_version @@ -1386,5 +1390,19 @@ class Update { } // update_332006 + /** + * update_332007 + * Arg... I'm tried of writting these updates + * If I would only get it right the first time I wouldn't have to do this + */ + function update_332007() { + + $sql = "ALTER TABLE `playlist_data` CHANGE `dyn_song` `dyn_song` TEXT NULL DEFAULT NULL"; + $db_results = mysql_query($sql, dbh()); + + $this->set_version('db_version','332007'); + + } // update_332007 + } // end update class ?> |