summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc19
1 files changed, 18 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 1cde1f4bd..988cb3a6f 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -65,7 +65,8 @@ $sql_updates = array(
"2005-08-15" => "update_145",
"2005-08-25" => "update_146",
"2005-09-07" => "update_147",
- "2005-09-18" => "update_148"
+ "2005-09-18" => "update_148",
+ "2005-09-27" => "update_149"
);
function update_110() {
@@ -829,6 +830,22 @@ function update_148() {
return $ret;
}
+function update_149() {
+ $ret = array();
+
+ switch ($GLOBALS['db_type']) {
+ case 'pgsql':
+ case 'mysql':
+ case 'mysqli':
+ $ret[] = update_sql("ALTER TABLE {files} ADD COLUMN description VARCHAR(255) NOT NULL DEFAULT ''");
+ break;
+ default:
+ break;
+ }
+
+ return $ret;
+}
+
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);