Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
8a73f1b8
Commit
8a73f1b8
authored
Dec 15, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added two fields to the usr table to handle account expiry/inactive
e-mails
parent
5f829e05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
htdocs/lib/db/install.xml
htdocs/lib/db/install.xml
+2
-0
htdocs/lib/db/upgrade.php
htdocs/lib/db/upgrade.php
+10
-0
No files found.
htdocs/lib/db/install.xml
View file @
8a73f1b8
...
...
@@ -61,7 +61,9 @@
<FIELD
NAME=
"passwordchange"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"deleted"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"expiry"
TYPE=
"datetime"
NOTNULL=
"false"
/>
<FIELD
NAME=
"expirymailsent"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"lastlogin"
TYPE=
"datetime"
NOTNULL=
"false"
/>
<FIELD
NAME=
"inactivemailsent"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"staff"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"admin"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"firstname"
TYPE=
"text"
NOTNULL=
"false"
/>
...
...
htdocs/lib/db/upgrade.php
View file @
8a73f1b8
...
...
@@ -41,6 +41,16 @@ function xmldb_core_upgrade($oldversion=0) {
change_field_enum
(
$table
,
$field
);
}
if
(
$oldversion
<
2006121401
)
{
$table
=
new
XMLDBTable
(
'usr'
);
$field
=
new
XMLDBField
(
'expirymailsent'
);
$field
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
1
,
false
,
true
,
false
,
null
,
null
,
0
);
add_field
(
$table
,
$field
);
$field
=
new
XMLDBField
(
'inactivemailsent'
);
$field
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
1
,
false
,
true
,
false
,
null
,
null
,
0
);
add_field
(
$table
,
$field
);
}
return
$status
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment