Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
c6c76e78
Commit
c6c76e78
authored
Mar 10, 2009
by
Elliot Pahl
Committed by
Elliot Pahl
Mar 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add expiry, expirymailsent, and suspended fields to the institution table.
parent
fa9e3f4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
htdocs/lib/db/install.xml
htdocs/lib/db/install.xml
+3
-0
htdocs/lib/db/upgrade.php
htdocs/lib/db/upgrade.php
+16
-1
htdocs/lib/version.php
htdocs/lib/version.php
+1
-1
No files found.
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
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