Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c6c76e78
Commit
c6c76e78
authored
Mar 10, 2009
by
Elliot Pahl
Committed by
Elliot Pahl
Mar 13, 2009
Browse files
Add expiry, expirymailsent, and suspended fields to the institution table.
parent
fa9e3f4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/install.xml
View file @
c6c76e78
...
...
@@ -42,6 +42,9 @@
<FIELD
NAME=
"theme"
TYPE=
"char"
LENGTH=
"255"
NOTNULL=
"false"
/>
<FIELD
NAME=
"defaultmembershipperiod"
TYPE=
"int"
NOTNULL=
"false"
/>
<FIELD
NAME=
"maxuseraccounts"
TYPE=
"int"
NOTNULL=
"false"
/>
<FIELD
NAME=
"expiry"
TYPE=
"datetime"
NOTNULL=
"false"
/>
<FIELD
NAME=
"expirymailsent"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"suspended"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"name"
/>
...
...
htdocs/lib/db/upgrade.php
View file @
c6c76e78
...
...
@@ -869,8 +869,23 @@ function xmldb_core_upgrade($oldversion=0) {
reload_html_filters
();
}
return
$status
;
if
(
$oldversion
<
2009031300
)
{
$table
=
new
XMLDBTable
(
'institution'
);
$expiry
=
new
XMLDBField
(
'expiry'
);
$expiry
->
setAttributes
(
XMLDB_TYPE_DATETIME
);
add_field
(
$table
,
$expiry
);
$expirymailsent
=
new
XMLDBField
(
'expirymailsent'
);
$expirymailsent
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
1
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
null
,
0
);
add_field
(
$table
,
$expirymailsent
);
$suspended
=
new
XMLDBField
(
'suspended'
);
$suspended
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
1
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
null
,
0
);
add_field
(
$table
,
$suspended
);
}
return
$status
;
}
?>
htdocs/lib/version.php
View file @
c6c76e78
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
2009031
0
00
;
$config
->
version
=
2009031
3
00
;
$config
->
release
=
'1.2.0dev'
;
$config
->
minupgradefrom
=
2008040200
;
$config
->
minupgraderelease
=
'1.0.0 (release tag 1.0.0_RELEASE)'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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