summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-27 09:24:34 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-27 09:24:34 +0000
commitf593f18131d6a0cbf30b558b208e86b9fc957f13 (patch)
treeaf665d7fb2f7ec17b1948c8d1146dd9a6deaba29 /lib/class/update.class.php
parent14019e88c5370df8251b8d9836ea5867b670af1c (diff)
downloadampache-f593f18131d6a0cbf30b558b208e86b9fc957f13.tar.gz
ampache-f593f18131d6a0cbf30b558b208e86b9fc957f13.tar.bz2
ampache-f593f18131d6a0cbf30b558b208e86b9fc957f13.zip
Commit, still no internet paying for it.. curse you free.fr
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 4ddab260..f09047cc 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -1398,5 +1398,27 @@ class Update {
} // update_350002
+ /**
+ * update_350003
+ * This update tweakes the tag tables a little bit more, we're going to simplify things for the first little bit and then
+ * then if it all works out we will worry about making it complex again. One thing at a time people...
+ */
+ public static function update_350003() {
+
+ $sql = "ALTER TABLE `tag` DROP `order`";
+ $db_results = Dba::write($sql);
+
+ $sql = "ALTER TABLE `tag` DROP INDEX `order`";
+ $db_results = Dba::write($sql);
+
+ $sql = "ALTER TABLE `tag` ADD UNIQUE ( `name` )";
+ $db_results = Dba::write($sql);
+
+ $sql = "ALTER TABLE `tag` CHANGE `name` `name` VARCHAR( 255 )";
+ $db_results = Dba::write($sql);
+
+
+ } // update_350003
+
} // end update class
?>