set the value column to varchar(512), not the name column

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4879 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
Ian Berry committed 2009-01-10 21:14:25 +00:00
1 parent a8517739f1
commit c326ae36be
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ function upgrade_to_0_8_7c() {
/* increase the width of the settings field, but only if MySQL is >= 5 */
if (substr(db_fetch_cell("SELECT @@version"), 0, 1) >= 5) {
db_install_execute("0.8.7c", "ALTER TABLE `settings` MODIFY COLUMN `name` VARCHAR(512) NOT NULL DEFAULT ''");
db_install_execute("0.8.7c", "ALTER TABLE `settings` MODIFY COLUMN `value` VARCHAR(512) NOT NULL DEFAULT ''");
}
/* add a default for NOT NULL columns */