summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocs/CHANGELOG2
-rw-r--r--lib/class/update.class.php10
2 files changed, 3 insertions, 9 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG
index ba9cc2e2..fc228610 100755
--- a/docs/CHANGELOG
+++ b/docs/CHANGELOG
@@ -4,6 +4,8 @@
--------------------------------------------------------------------------
v.3.6-FUTURE
+ - Made database updates more robust and verified that a fresh 3.3.3.5 import
+ will run through the updates without errors
- Added support for external authenticators like pwauth (based on a patch by
sjlu)
- Renamed the local auth method to pam, which is less confusing
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 6f0fd8eb..f730b335 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -619,9 +619,6 @@ class Update {
*/
public static function update_340005() {
$retval = true;
- // Turn user_rating into a tinyint and call it score
- $sql = "ALTER TABLE `rating` CHANGE `user_rating` `score` TINYINT( 4 ) UNSIGNED NOT NULL DEFAULT '0'";
- $retval = Dba::write($sql) ? $retval : false;
$sql = "UPDATE `preference` SET `catagory`='playlist' WHERE `name`='random_method'";
$retval = Dba::write($sql) ? $retval : false;
@@ -892,7 +889,7 @@ class Update {
* done this in the previous one but I screwed up... sigh.
*/
public static function update_340016() {
- $sql = "ALTER TABLE `democratic` ADD `base_playlist` INT ( 11 ) UNSIGNED NOT NULL";
+ $sql = "ALTER TABLE `democratic` ADD `base_playlist` INT ( 11 ) UNSIGNED NOT NULL AFTER `name`";
return Dba::write($sql);
}
@@ -904,8 +901,6 @@ class Update {
*/
public static function update_340017() {
$retval = true;
- $sql = "ALTER TABLE `democratic` ADD `base_playlist` INT( 11 ) UNSIGNED NOT NULL AFTER `name`";
- $retval = Dba::write($sql) ? $retval : false;
$sql = "ALTER TABLE `tmp_playlist` DROP `base_playlist`";
$retval = Dba::write($sql) ? $retval : false;
@@ -984,9 +979,6 @@ class Update {
$sql = "ALTER TABLE `tag` DROP `order`";
$retval = Dba::write($sql) ? $retval : false;
- $sql = "ALTER TABLE `tag` DROP INDEX `order`";
- $retval = Dba::write($sql) ? $retval : false;
-
$sql = "ALTER TABLE `tag` ADD UNIQUE ( `name` )";
$retval = Dba::write($sql) ? $retval : false;