summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
Diffstat (limited to 'database')
-rw-r--r--database/database.mysql1
-rw-r--r--database/updates.inc8
2 files changed, 8 insertions, 1 deletions
diff --git a/database/database.mysql b/database/database.mysql
index 874bde898..fd7f22980 100644
--- a/database/database.mysql
+++ b/database/database.mysql
@@ -325,6 +325,7 @@ CREATE TABLE profile_fields (
page varchar(255) default NULL,
type varchar(128) default NULL,
weight tinyint(1) DEFAULT '0' NOT NULL,
+ required tinyint(1) DEFAULT '0' NOT NULL,
overview tinyint(1) DEFAULT '0' NOT NULL,
options text,
KEY category (category),
diff --git a/database/updates.inc b/database/updates.inc
index 663bccf61..f5ddfc7fb 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -52,7 +52,8 @@ $sql_updates = array(
"2004-02-03" => "update_78",
"2004-02-21" => "update_79",
"2004-03-11: first update since Drupal 4.4.0 release" => "update_80",
- "2004-02-20" => "update_81"
+ "2004-02-20" => "update_81",
+ "2004-02-27" => "update_82"
);
function update_32() {
@@ -890,6 +891,11 @@ function update_81() {
return $ret;
}
+function update_82() {
+ $ret[] = update_sql("ALTER TABLE {profile_fields} ADD required tinyint(1) DEFAULT '0' NOT NULL");
+ return $ret;
+}
+
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);