summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/DB/Schema.pm2
-rw-r--r--Bugzilla/Install/DB.pm5
2 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index 49ee0ff96..a9dfa6d8e 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -950,6 +950,8 @@ use constant ABSTRACT_SCHEMA => {
is_enabled => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'TRUE'},
last_seen_date => {TYPE => 'DATETIME'},
+ password_change_required => { TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE' },
+ password_change_reason => { TYPE => 'varchar(64)' },
],
INDEXES => [
profiles_login_name_idx => {FIELDS => ['login_name'],
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 5b8cc3992..9a329d355 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -747,6 +747,11 @@ sub update_table_definitions {
_add_restrict_ipaddr();
+ $dbh->bz_add_column('profiles', 'password_change_required',
+ { TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE' });
+ $dbh->bz_add_column('profiles', 'password_change_reason',
+ { TYPE => 'varchar(64)' });
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################