summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 658f7103d..ecb8384eb 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -1973,3 +1973,17 @@ function system_update_180() {
return $ret;
}
+
+function system_update_181() {
+ $ret = array();
+ switch ($GLOBALS['db_type']) {
+ case 'mysql':
+ case 'mysqli':
+ $ret[] = update_sql("ALTER TABLE {profile_fields} ADD autocomplete TINYINT(1) NOT NULL AFTER visibility ;");
+ break;
+ case 'pgsql':
+ db_add_column($ret, 'profile_fields', 'autocomplete', 'smallint');
+ break;
+ }
+ return $ret;
+}